3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('constant', 'value'); class x { static $z = array(); static public function x($z) { self::z[] = $z; } } foreach(range(1,500000) as $x) { x:x($x); }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21, 5.5.0 - 5.5.5
Parse error: syntax error, unexpected '[' in /in/iPIJ3 on line 8
Process exited with code 255.

preferences:
203.78 ms | 1395 KiB | 63 Q