3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $render = array( 'Dimensions' => array( 'Diameter' => '11 5/8" (295mm)' ), 'Cutout' => array( 'Diameter' => '10 1/80 (257mm)' ), 'Dimensions with Square Grille' => array( 'Width' => '11 3/4" (299mm)', 'Height' => '11 3/4" (299mm)' ), 'Depth' => array( '5 7/8" (149mm)' ), 'Grille Material' => array( 'Perforated steel' ), 'Limited Five Year Warranty' ); print_r( json_encode( $render ) );
Output for 5.2.0 - 7.1.0
{"Dimensions":{"Diameter":"11 5\/8\" (295mm)"},"Cutout":{"Diameter":"10 1\/80 (257mm)"},"Dimensions with Square Grille":{"Width":"11 3\/4\" (299mm)","Height":"11 3\/4\" (299mm)"},"Depth":["5 7\/8\" (149mm)"],"Grille Material":["Perforated steel"],"0":"Limited Five Year Warranty"}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/diA6h on line 24
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/diA6h on line 24
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/diA6h on line 24
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/diA6h on line 24