3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(){ global $b =123; function b1(){ echo $b; } echo b1(); } a();
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '=', expecting ',' or ';' in /in/ku9Hg on line 4
Process exited with code 255.

preferences:
198.09 ms | 1399 KiB | 67 Q