3v4l.org

run code in 500+ PHP versions simultaneously
<?php $result = '[ { "id": 1, "name": "Leanne Graham", "username": "Bret", "email": "Sincere@april.biz", "address": { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } }, "phone": "1-770-736-8031 x56442", "website": "hildegard.org", "company": { "name": "Romaguera-Crona", "catchPhrase": "Multi-layered client-server neural-net", "bs": "harness real-time e-markets" } }]'; $id = 1; $data = json_decode($result, true) ; foreach ($data as $mydata) { if ($mydata["id"] == $id) { echo $mydata["address"]["street"] ; break ; } }

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.5.60.0090.00516.75
8.5.30.0070.01019.35
8.5.20.0120.00819.53
8.5.10.0100.00716.47
8.5.00.0130.00819.84
8.4.180.0140.01019.57
8.4.170.0140.00820.43
8.4.160.0100.01220.68
8.4.150.0080.00416.90
8.4.140.0140.01217.73
8.4.130.0120.00818.91
8.4.120.0090.01118.59
8.4.110.0120.00718.74
8.4.100.0140.00717.77
8.4.90.0070.00420.73
8.4.80.0130.00620.69
8.4.70.0090.01020.53
8.4.60.0090.00320.44
8.4.50.0100.00720.61
8.4.40.0130.00619.27
8.4.30.0160.00317.71
8.4.20.0100.01020.71
8.4.10.0060.00320.73
8.3.300.0070.00819.21
8.3.290.0120.00820.82
8.3.280.0140.00718.35
8.3.270.0080.01116.57
8.3.260.0090.01016.80
8.3.250.0090.00216.61
8.3.240.0130.00616.47
8.3.230.0100.00616.64
8.3.220.0110.00620.59
8.3.210.0090.01016.79
8.3.200.0050.00416.41
8.3.190.0060.00919.10
8.3.180.0120.00618.77
8.3.170.0100.01017.16
8.3.160.0150.00318.23
8.3.150.0120.00616.63
8.3.140.0070.00016.67
8.3.130.0080.00018.22
8.3.120.0090.00018.82
8.3.110.0000.00920.94
8.3.100.0030.00618.37
8.3.90.0100.00726.77
8.3.80.0030.00716.63
8.3.70.0140.00716.58
8.3.60.0090.00918.55
8.3.50.0060.01019.17
8.3.40.0040.01118.68
8.3.30.0040.01218.85
8.3.20.0040.00420.95
8.3.10.0040.00423.52
8.3.00.0080.00023.47
8.2.300.0100.01020.23
8.2.290.0130.00716.94
8.2.280.0070.00418.17
8.2.270.0170.00716.87
8.2.260.0110.00717.00
8.2.250.0050.00516.43
8.2.240.0060.00318.49
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0040.00416.88
8.2.190.0000.01916.62
8.2.180.0060.00925.92
8.2.170.0120.00318.95
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00421.14
8.2.110.0060.00321.06
8.2.100.0070.00717.97
8.2.90.0040.00417.75
8.2.80.0030.00618.05
8.2.70.0040.00417.93
8.2.60.0060.00318.16
8.2.50.0040.00418.10
8.2.40.0050.00319.43
8.2.30.0070.00020.47
8.2.20.0050.00218.05
8.2.10.0000.00719.50
8.2.00.0020.00518.17
8.1.340.0090.01121.92
8.1.330.0140.00816.10
8.1.320.0110.00818.15
8.1.310.0000.00816.67
8.1.300.0060.00316.34
8.1.290.0040.00830.84
8.1.280.0130.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0080.00023.97
8.1.230.0060.00620.88
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0000.00718.64
8.1.160.0040.00418.83
8.1.150.0040.00418.88
8.1.140.0000.00718.93
8.1.130.0040.00720.36
8.1.120.0070.00017.48
8.1.110.0030.00517.34
8.1.100.0040.00417.38
8.1.90.0030.00517.47
8.1.80.0000.00917.46
8.1.70.0000.00817.35
8.1.60.0040.00417.45
8.1.50.0040.00417.55
8.1.40.0060.00317.50
8.1.30.0040.00417.58
8.1.20.0090.00517.57
8.1.10.0030.00717.45
8.1.00.0000.00717.41
8.0.300.0000.00720.15
8.0.290.0020.00516.63
8.0.280.0030.00318.43
8.0.270.0030.00317.18
8.0.260.0000.00618.49
8.0.250.0070.00016.98
8.0.240.0030.00316.85
8.0.230.0040.00416.84
8.0.220.0040.00416.79
8.0.210.0070.00016.88
8.0.200.0000.00616.93
8.0.190.0040.00416.91
8.0.180.0040.00416.98
8.0.170.0030.00616.83
8.0.160.0050.00316.91
8.0.150.0040.00416.82
8.0.140.0000.00716.84
8.0.130.0000.00613.38
8.0.120.0050.00216.86
8.0.110.0000.00716.79
8.0.100.0000.00716.77
8.0.90.0040.00416.90
8.0.80.0060.01616.92
8.0.70.0000.00716.76
8.0.60.0040.00416.72
8.0.50.0000.00716.74
8.0.30.0110.00617.04
8.0.20.0200.00716.95
8.0.10.0060.00316.93
8.0.00.0120.00716.72
7.4.330.0050.00016.64
7.4.320.0000.00616.39
7.4.300.0060.00016.51
7.4.290.0000.00816.52
7.4.280.0000.00716.48
7.4.270.0030.00316.61
7.4.260.0040.00416.59
7.4.250.0000.00716.59
7.4.240.0040.00416.44
7.4.230.0030.00316.59
7.4.220.0000.00716.48
7.4.210.0090.00916.55
7.4.200.0030.00516.67
7.4.160.0090.00916.49
7.4.140.0140.00717.86
7.4.130.0140.00716.44
7.4.120.0130.00916.40
7.4.110.0140.00316.34
7.4.100.0070.01016.56
7.4.90.0030.01316.55
7.4.80.0050.01419.39
7.4.70.0120.00616.60
7.4.60.0000.01516.53
7.4.50.0000.01416.23
7.4.40.0030.01416.59
7.4.00.0100.00614.96
7.3.330.0030.00313.12
7.3.320.0060.00013.01
7.3.310.0040.00416.29
7.3.300.0030.00316.36
7.3.290.0000.00816.22
7.3.280.0090.00616.32
7.3.260.0100.01016.37
7.3.240.0090.00816.40
7.3.230.0120.00616.66
7.3.210.0080.00816.40
7.3.200.0120.00316.51
7.3.190.0140.00716.56
7.3.180.0100.00716.32
7.3.170.0120.00616.46
7.3.160.0160.00016.64
7.3.40.0060.00814.78
7.3.30.0160.00314.55
7.3.20.0080.00316.62
7.3.10.0060.02016.70
7.3.00.0090.00316.47
7.2.330.0070.01116.59
7.2.320.0130.01016.42
7.2.310.0140.00316.47
7.2.300.0040.01316.76
7.2.290.0100.00716.70
7.2.170.0060.00314.91
7.2.160.0070.01315.13
7.2.150.0060.00616.80
7.2.140.0030.01216.81
7.2.130.0070.00416.95
7.2.120.0170.00316.79
7.2.110.0120.00016.77
7.2.100.0180.00316.86
7.2.90.0120.00616.83
7.2.80.0030.01716.70
7.2.70.0090.00617.13
7.2.60.0120.00016.94
7.2.50.0080.00316.97
7.2.40.0070.01816.85
7.2.30.0090.01316.90
7.2.20.0090.01216.95
7.2.10.0040.00816.84
7.2.00.0160.00317.04
7.1.280.0130.01015.86
7.1.270.0030.01015.81
7.1.260.0100.01015.86
7.1.250.0090.00015.75

preferences:
41.85 ms | 1404 KiB | 5 Q