3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo json_encode( 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" ), [1] => array ( [0] => "United Kingdom", [1] => "Cyclophosphamide 100 Film coated tablets 50mg ", [2] => "1-6", [3] => "13.05", [4] => "78.3" ), [2] => array ( [0] => "United Kingdom", [1] => "Doxorubin 10vials Powder for solution for injection 10mg Medac UK", [2] => "1-6", [3] => 145.43, [4] => 872.58 ), [3] => array ( [0] => "United Kingdom", [1] => "Paclitaxel 50ml Concentration For Solution For Infusion 6mg / ml ", [2] => "7-10", [3] => 765.05, [4] => 3060.2 ) ) ));
based on etKEG
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 7 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 8 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 9 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 10 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 11 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 12 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 18 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 19 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 20 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 21 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 22 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 23 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 27 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 28 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 29 Warning: Invalid operand type was used: Invalid type used as key in /in/D4dgG on line 30 []
Output for 5.4.0 - 5.6.28
Warning: Illegal offset type in /in/D4dgG on line 7 Warning: Illegal offset type in /in/D4dgG on line 8 Warning: Illegal offset type in /in/D4dgG on line 9 Warning: Illegal offset type in /in/D4dgG on line 10 Warning: Illegal offset type in /in/D4dgG on line 12 Warning: Illegal offset type in /in/D4dgG on line 12 Warning: Illegal offset type in /in/D4dgG on line 18 Warning: Illegal offset type in /in/D4dgG on line 19 Warning: Illegal offset type in /in/D4dgG on line 20 Warning: Illegal offset type in /in/D4dgG on line 21 Warning: Illegal offset type in /in/D4dgG on line 23 Warning: Illegal offset type in /in/D4dgG on line 23 Warning: Illegal offset type in /in/D4dgG on line 27 Warning: Illegal offset type in /in/D4dgG on line 28 Warning: Illegal offset type in /in/D4dgG on line 29 Warning: Illegal offset type in /in/D4dgG on line 30 Warning: Illegal offset type in /in/D4dgG on line 32 Warning: Illegal offset type in /in/D4dgG on line 32 Warning: Illegal offset type in /in/D4dgG on line 36 Warning: Illegal offset type in /in/D4dgG on line 37 Warning: Illegal offset type in /in/D4dgG on line 38 Warning: Illegal offset type in /in/D4dgG on line 39 Warning: Illegal offset type in /in/D4dgG on line 41 Warning: Illegal offset type in /in/D4dgG on line 41 Warning: Illegal offset type in /in/D4dgG on line 45 Warning: Illegal offset type in /in/D4dgG on line 46 Warning: Illegal offset type in /in/D4dgG on line 47 Warning: Illegal offset type in /in/D4dgG on line 48 Warning: Illegal offset type in /in/D4dgG on line 50 Warning: Illegal offset type in /in/D4dgG on line 52 Warning: Illegal offset type in /in/D4dgG on line 54 []
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/D4dgG on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/D4dgG on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/D4dgG on line 5
Process exited with code 255.