3v4l.org

run code in 300+ PHP versions simultaneously
<?php function lint($code) { $code = strpos($code, '<?php') === 0 ? $code : "<?php $code"; $filename = tempnam(sys_get_temp_dir(), 'lnt'); file_put_contents($filename, $code); exec(PHP_BINARY . " -l $filename", $errors); return $errors; } print_r( lint('echo "world"; } ') );
Output for git.master
Warning: exec(): Unable to fork [/usr/bin/php-git-master -l /tmp/lntQkv5sx] in /in/q8UvF on line 7 Array ( )
Output for git.master_jit
Warning: exec(): Unable to fork [/usr/bin/php-git-master -l /tmp/lntt6i2mt] in /in/q8UvF on line 7 Array ( )
Output for rfc.property-hooks
Warning: exec(): Unable to fork [/usr/bin/php-git-property-hooks -l /tmp/lntNHFFMV] in /in/q8UvF on line 7 Array ( )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.3 ms | 405 KiB | 9 Q