3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.19
Parse error: syntax error, unexpected ')' in /in/K5RdL on line 33
Process exited with code 255.