3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($a) {} // 2 * undefined variable foo($b); var_dump($b); // NULL // no error function foo2(&$a) {} // undefined variable foo($c); // Now, $c exists var_dump($c); // NULL
Output for 8.6.0rc7
Warning: Undefined variable $b in /in/fKV5D on line 5 Warning: Undefined variable $b in /in/fKV5D on line 6 NULL Warning: Undefined variable $c in /in/fKV5D on line 11 Warning: Undefined variable $c in /in/fKV5D on line 13 NULL
Output for master
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/git-master/modules/sodium.so (/usr/lib/php/git-master/modules/sodium.so: cannot open shared object file: No such file or directory), /usr/lib/php/git-master/modules/sodium.so.so (/usr/lib/php/git-master/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Undefined variable $b in /in/fKV5D on line 5 Warning: Undefined variable $b in /in/fKV5D on line 6 NULL Warning: Undefined variable $c in /in/fKV5D on line 11 Warning: Undefined variable $c in /in/fKV5D on line 13 NULL

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:
28.72 ms | 1162 KiB | 8 Q