I am using SublimeText3 on OSX. The problem is:
- If I execute PHP script on SublimeText3, then it is executed by PHP 5.5.
- But if I execute the same script from shell (iTerm), then it is executed by PHP 7.
How can I execute a script with PHP7 on SublimeText3?
The build system is following.
{
"cmd" : ["php", "$file"],
"file_regex": "php$",
"selector" : "source.php"
}
And the PHP script is just:
<?php
phpinfo();
?>