3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump($d = json_decode(' {"_index":"dwh","_type":"n/a","_id":"n/a","_version":1,"exists":true,"_source":{"cumulusId":2099411499044,"firstname":"Marcus","lastname":"Ficner","language":"1","sex":2,"email":"marcus.ficner@grandcentrix.net","salutation1":"Sehr geehrter Herr","salutation2":"Ficner","countryCode":"DE","code":"44137","residence":"Dortmund","birthday":"1982-12-15","address1":"","address2":"Steubenstraße 2","amountMonth":0.00,"amountPeriod":0.00,"pointsPeriod":23.000}}')); echo $d->_source_cumulusId;
Output for 5.2.6 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
object(stdClass)#1 (6) { ["_index"]=> string(3) "dwh" ["_type"]=> string(3) "n/a" ["_id"]=> string(3) "n/a" ["_version"]=> int(1) ["exists"]=> bool(true) ["_source"]=> object(stdClass)#2 (17) { ["cumulusId"]=> int(2099411499044) ["firstname"]=> string(6) "Marcus" ["lastname"]=> string(6) "Ficner" ["language"]=> string(1) "1" ["sex"]=> int(2) ["email"]=> string(30) "marcus.ficner@grandcentrix.net" ["salutation1"]=> string(18) "Sehr geehrter Herr" ["salutation2"]=> string(6) "Ficner" ["countryCode"]=> string(2) "DE" ["code"]=> string(5) "44137" ["residence"]=> string(8) "Dortmund" ["birthday"]=> string(10) "1982-12-15" ["address1"]=> string(0) "" ["address2"]=> string(18) "Steubenstraße 2" ["amountMonth"]=> float(0) ["amountPeriod"]=> float(0) ["pointsPeriod"]=> float(23) } } Notice: Undefined property: stdClass::$_source_cumulusId in /in/inTBg on line 6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.0 - 5.2.5
object(stdClass)#1 (6) { ["_index"]=> string(3) "dwh" ["_type"]=> string(3) "n/a" ["_id"]=> string(3) "n/a" ["_version"]=> int(1) ["exists"]=> bool(true) ["_source"]=> object(stdClass)#2 (17) { ["cumulusId"]=> int(2099411499044) ["firstname"]=> string(6) "Marcus" ["lastname"]=> string(6) "Ficner" ["language"]=> string(1) "1" ["sex"]=> int(2) ["email"]=> string(30) "marcus.ficner@grandcentrix.net" ["salutation1"]=> string(18) "Sehr geehrter Herr" ["salutation2"]=> string(6) "Ficner" ["countryCode"]=> string(2) "DE" ["code"]=> string(5) "44137" ["residence"]=> string(8) "Dortmund" ["birthday"]=> string(10) "1982-12-15" ["address1"]=> string(0) "" ["address2"]=> string(18) "Steubenstraße 2" ["amountMonth"]=> float(0) ["amountPeriod"]=> float(0) ["pointsPeriod"]=> float(23) } } Notice: Undefined property: stdClass::$_source_cumulusId in /in/inTBg on line 6
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/inTBg on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/inTBg on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/inTBg on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/inTBg on line 3