3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 0 => array ( 'c' => array ( 0 => array ( 'v' => 'pcount', ), 1 => array ( 'v' => 0, ), ), ), 1 => array ( 'c' => array ( 0 => array ( 'v' => 'ncount', ), 1 => array ( 'v' => 0, ), ), ), ) ); echo json_encode($array);
Output for 5.4.20
Parse error: syntax error, unexpected ')' in /in/NHqY3 on line 33
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Parse error: syntax error, unexpected ')' in /in/K5RdL on line 33
Process exited with code 255.

preferences:
178.36 ms | 1395 KiB | 56 Q