3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $render = array( 'Dimensions' => array( 'Width' => '13 25/320 (350mm)', 'Height' => '13 25/320 (350mm)' ), 'Cut-Out Dimensions' => array( 'Width' => '12 3/80 (314mm)', 'Height' => '12 3/80 (314mm)' ), 'Depth' => array( '7 9/160 (192mm)' ), 'Grille Material' => array( 'Performance steel' ), 'Limited Lifetime Warranty' ); print_r( json_encode( $render ) );
Output for 5.2.0 - 7.1.0
{"Dimensions":{"Width":"13 25\/320 (350mm)","Height":"13 25\/320 (350mm)"},"Cut-Out Dimensions":{"Width":"12 3\/80 (314mm)","Height":"12 3\/80 (314mm)"},"Depth":["7 9\/160 (192mm)"],"Grille Material":["Performance steel"],"0":"Limited Lifetime Warranty"}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/kVQSX on line 22
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/kVQSX on line 22
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/kVQSX on line 22
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/kVQSX on line 22