3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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) } } Warning: Undefined property: stdClass::$_source_cumulusId in /in/inTBg on line 6
Output for 5.2.6 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
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) } }
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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
212.89 ms | 401 KiB | 328 Q