3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo json_encode(serialize( array( "column" =>array ( 0 => "Country", 1 => "Drug", 2 => "Cycles", 3 => "Price / cycle", 4 => "Price / treatment" ), "row" => array ( 0 => array ( 0 => "United Kingdom", 1 => "Efudix 40g CREAM 50mg / g Meda Pharmaceuticals Ltd", 2 => "1-6", 3 => "26.17", 4 => "157.02" ) ) )) ); ?>
based on 92FNp
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
"a:2:{s:6:\"column\";a:5:{i:0;s:7:\"Country\";i:1;s:4:\"Drug\";i:2;s:6:\"Cycles\";i:3;s:13:\"Price \/ cycle\";i:4;s:17:\"Price \/ treatment\";}s:3:\"row\";a:1:{i:0;a:5:{i:0;s:14:\"United Kingdom\";i:1;s:50:\"Efudix 40g CREAM 50mg \/ g Meda Pharmaceuticals Ltd\";i:2;s:3:\"1-6\";i:3;s:5:\"26.17\";i:4;s:6:\"157.02\";}}}"
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/m0p4N on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/m0p4N on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/m0p4N on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/m0p4N on line 2