3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"ProductId":"1","ProductName":"WGServer","DiskSerialNumber":"SB024CKGF9S44E","MACAddress":"00:02:B6:36:3D:59","ProductSerialNumber":"5023344","LicenseKey":"GMAJ6A-AZ2AIR-EIIIAA-TCAMAA-T9AXER-SEC2AT","GenerationDate":"2009-05-21","ExpirationDate":"Unlimited","UsersLimit":"50","modules":[{"Id":"7","Module":"WGTICKET","Description":"Tickets printer module"},{"Id":"9","Module":"WGSECTRACE","Description":"Security and Traceability Module"}],"SSPStatus":"N\/A"}'));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
object(stdClass)#1 (11) { ["ProductId"]=> string(1) "1" ["ProductName"]=> string(8) "WGServer" ["DiskSerialNumber"]=> string(14) "SB024CKGF9S44E" ["MACAddress"]=> string(17) "00:02:B6:36:3D:59" ["ProductSerialNumber"]=> string(7) "5023344" ["LicenseKey"]=> string(41) "GMAJ6A-AZ2AIR-EIIIAA-TCAMAA-T9AXER-SEC2AT" ["GenerationDate"]=> string(10) "2009-05-21" ["ExpirationDate"]=> string(9) "Unlimited" ["UsersLimit"]=> string(2) "50" ["modules"]=> array(2) { [0]=> object(stdClass)#2 (3) { ["Id"]=> string(1) "7" ["Module"]=> string(8) "WGTICKET" ["Description"]=> string(22) "Tickets printer module" } [1]=> object(stdClass)#3 (3) { ["Id"]=> string(1) "9" ["Module"]=> string(10) "WGSECTRACE" ["Description"]=> string(32) "Security and Traceability Module" } } ["SSPStatus"]=> string(3) "N/A" }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/hWD3s on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/hWD3s on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/hWD3s on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/hWD3s on line 2