3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "device" : [{ "id" : "18496597", "clientDeviceId" : "18", "name" : "Adven", "state" : 1, "statevalue" : "0", "methods" : 3, "type" : "device", "client" : "2612195", "online" : "1", "editable" : 1, "ignored" : 0 }, { "id" : "18327685", "clientDeviceId" : "7", "name" : "Alla", "state" : 1, "statevalue" : null, "methods" : 3, "type" : "group", "client" : "261295", "online" : "1", "editable" : 1, "ignored" : 0 } ] }'; $devices = json_decode($json); var_dump($devices); foreach ($devices->device as $device) { echo $device->name . ' - '. $device->state . PHP_EOL; } echo json_last_error();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0000.01518.30
8.3.50.0120.00619.75
8.3.40.0070.00718.71
8.3.30.0040.01118.67
8.3.20.0080.00021.76
8.3.10.0040.00423.50
8.3.00.0000.00721.86
8.2.180.0040.01116.32
8.2.170.0040.01122.96
8.2.160.0070.00720.82
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00019.45
8.2.120.0040.00426.35
8.2.110.0090.00020.35
8.2.100.0090.00319.64
8.2.90.0030.00619.22
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0090.00017.80
8.2.50.0000.00818.16
8.2.40.0040.00420.42
8.2.30.0040.00419.26
8.2.20.0070.00017.99
8.2.10.0000.00818.02
8.2.00.0070.00018.36
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0000.00923.79
8.1.230.0040.00720.92
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0090.00018.59
8.1.160.0000.00818.97
8.1.150.0000.00718.91
8.1.140.0000.00719.09
8.1.130.0000.00717.75
8.1.120.0040.00417.50
8.1.110.0050.00317.46
8.1.100.0040.00417.54
8.1.90.0000.00817.50
8.1.80.0080.00017.42
8.1.70.0000.00717.39
8.1.60.0040.00417.64
8.1.50.0050.00517.41
8.1.40.0040.00417.53
8.1.30.0030.00517.66
8.1.20.0000.00717.73
8.1.10.0030.00517.57
8.1.00.0030.00617.46
8.0.300.0000.00818.93
8.0.290.0030.00616.75
8.0.280.0030.00318.38
8.0.270.0000.00717.20
8.0.260.0000.00717.19
8.0.250.0000.00716.98
8.0.240.0030.00316.85
8.0.230.0040.00416.87
8.0.220.0040.00416.95
8.0.210.0050.00316.94
8.0.200.0070.00016.85
8.0.190.0050.00217.03
8.0.180.0050.00216.94
8.0.170.0030.00616.86
8.0.160.0000.00716.92
8.0.150.0000.00716.88
8.0.140.0040.00416.83
8.0.130.0000.00613.37
8.0.120.0030.00616.77
8.0.110.0030.00516.80
8.0.100.0070.00016.72
8.0.90.0000.00816.98
8.0.80.0090.00616.94
8.0.70.0040.00416.84
8.0.60.0000.00816.80
8.0.50.0000.00816.97
8.0.30.0130.00617.23
8.0.20.0140.00817.40
8.0.10.0050.00317.07
8.0.00.0060.01116.85
7.4.330.0050.00015.55
7.4.320.0000.00616.43
7.4.300.0000.00716.51
7.4.290.0030.00316.51
7.4.280.0000.00716.47
7.4.270.0070.00016.57
7.4.260.0030.00316.40
7.4.250.0070.00016.51
7.4.240.0050.00216.57
7.4.230.0050.00216.43
7.4.220.0040.00416.36
7.4.210.0110.01516.69
7.4.200.0040.00416.69
7.4.160.0100.00816.49
7.4.150.0120.00917.40
7.4.140.0160.00817.86
7.4.130.0140.00316.43
7.4.120.0120.01216.50
7.4.110.0090.01016.64
7.4.100.0070.01016.50
7.4.90.0090.00916.55
7.4.80.0110.01019.39
7.4.70.0070.01016.39
7.4.60.0030.01516.43
7.4.50.0070.00216.52
7.4.40.0110.01416.62
7.4.00.0080.00914.88
7.3.330.0030.00313.05
7.3.320.0000.00613.02
7.3.310.0070.00016.22
7.3.300.0000.00716.23
7.3.290.0110.00816.20
7.3.280.0080.00916.21
7.3.270.0180.00017.40
7.3.260.0070.01116.38
7.3.250.0090.01316.47
7.3.240.0120.00916.38
7.3.230.0090.00916.55
7.3.210.0030.01516.61
7.3.200.0100.00816.38
7.3.190.0040.01316.23
7.3.180.0090.00916.29
7.3.170.0160.00516.24
7.3.160.0090.00916.40
7.3.120.0090.00914.75
7.3.110.0110.00714.97
7.3.100.0100.00714.64
7.3.90.0080.00614.79
7.3.80.0070.01014.82
7.3.70.0120.00314.82
7.3.60.0040.01114.74
7.3.50.0090.00614.78
7.3.40.0110.00814.77
7.3.30.0070.00714.85
7.3.20.0030.01316.32
7.3.10.0000.01116.50
7.3.00.0040.01216.70
7.2.330.0030.01616.75
7.2.320.0100.00716.72
7.2.310.0120.01216.38
7.2.300.0070.01116.61
7.2.290.0000.01816.75
7.2.250.0040.01514.80
7.2.240.0140.00715.34
7.2.230.0070.01315.03
7.2.220.0090.00615.26
7.2.210.0030.01314.96
7.2.200.0060.00914.85
7.2.190.0030.00615.08
7.2.180.0000.01215.18
7.2.170.0100.01015.11
7.2.60.0100.00716.98
7.2.00.0100.01319.73
7.1.330.0100.00315.89
7.1.320.0060.00915.82
7.1.310.0030.01215.93
7.1.300.0090.00615.92
7.1.290.0030.01215.82
7.1.280.0110.00415.78
7.1.270.0060.00916.02
7.1.260.0060.00615.97
7.1.200.0100.00315.94
7.1.120.0000.01518.40
7.1.110.0030.01017.68
7.1.100.0030.01018.09
7.1.90.0060.00817.90
7.1.80.0020.01718.13
7.1.70.0100.00617.22
7.1.60.0170.01735.21
7.1.50.0140.01834.58
7.1.40.0180.01034.58
7.1.30.0170.01034.55
7.1.20.0140.01434.58
7.1.10.0030.01016.48
7.1.00.0030.01116.79

preferences:
53.23 ms | 400 KiB | 5 Q