3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo json_encode(unserialize(<<<SSS a:2:{s:15:"info_buyRequest";a:6:{s:4:"uenc";s:64:"aHR0cDovL2lsbHV4LW1hZ2VudG8uZnJvbnRpdC5kazo4MDgxL3ZlcmRlbnNrb3J0";s:7:"product";s:1:"9";s:8:"form_key";s:16:"tvO0hOamdtoP4qIi";s:15:"related_product";s:0:"";s:7:"options";a:2:{i:3;s:1:"3";i:4;s:1:"4";}s:3:"qty";s:1:"0";}s:7:"options";a:2:{i:0;a:7:{s:5:"label";s:5:"Color";s:5:"value";s:5:"Black";s:11:"print_value";s:260:"{"option_type_id":"3","option_id":"3","sku":null,"sort_order":"0","default_title":"Black","store_title":null,"title":"Black","default_price":"0.0000","default_price_type":"fixed","store_price":null,"store_price_type":null,"price":"0.0000","price_type":"fixed"}";s:9:"option_id";s:1:"3";s:11:"option_type";s:17:"wallsticker_color";s:12:"option_value";s:260:"{"option_type_id":"3","option_id":"3","sku":null,"sort_order":"0","default_title":"Black","store_title":null,"title":"Black","default_price":"0.0000","default_price_type":"fixed","store_price":null,"store_price_type":null,"price":"0.0000","price_type":"fixed"}";s:11:"custom_view";b:1;}i:1;a:7:{s:5:"label";s:4:"Size";s:5:"value";s:6:"1x1 cm";s:11:"print_value";s:6:"1x1 cm";s:9:"option_id";s:1:"4";s:11:"option_type";s:9:"drop_down";s:12:"option_value";s:1:"4";s:11:"custom_view";b:0;}}} SSS ));
Output for 5.2.0 - 7.1.0
{"info_buyRequest":{"uenc":"aHR0cDovL2lsbHV4LW1hZ2VudG8uZnJvbnRpdC5kazo4MDgxL3ZlcmRlbnNrb3J0","product":"9","form_key":"tvO0hOamdtoP4qIi","related_product":"","options":{"3":"3","4":"4"},"qty":"0"},"options":[{"label":"Color","value":"Black","print_value":"{\"option_type_id\":\"3\",\"option_id\":\"3\",\"sku\":null,\"sort_order\":\"0\",\"default_title\":\"Black\",\"store_title\":null,\"title\":\"Black\",\"default_price\":\"0.0000\",\"default_price_type\":\"fixed\",\"store_price\":null,\"store_price_type\":null,\"price\":\"0.0000\",\"price_type\":\"fixed\"}","option_id":"3","option_type":"wallsticker_color","option_value":"{\"option_type_id\":\"3\",\"option_id\":\"3\",\"sku\":null,\"sort_order\":\"0\",\"default_title\":\"Black\",\"store_title\":null,\"title\":\"Black\",\"default_price\":\"0.0000\",\"default_price_type\":\"fixed\",\"store_price\":null,\"store_price_type\":null,\"price\":\"0.0000\",\"price_type\":\"fixed\"}","custom_view":true},{"label":"Size","value":"1x1 cm","print_value":"1x1 cm","option_id":"4","option_type":"drop_down","option_value":"4","custom_view":false}]}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/m6in6 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/m6in6 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/m6in6 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/m6in6 on line 3