3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($a = ONE + self::THREE) {} static $a = 1 + 1, $b = ; const a = 1 + 1;
Output for 5.6.8 - 5.6.15
Parse error: syntax error, unexpected ';' in /in/GAlu1 on line 3
Process exited with code 255.
Output for 5.5.24 - 5.5.30
Parse error: syntax error, unexpected '+', expecting ')' in /in/GAlu1 on line 2
Process exited with code 255.

preferences:
194.31 ms | 1394 KiB | 22 Q