3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' { "status": "OK", "response": { "1": { "name": "Personal Information", "fields": { "1": { "name": "About Me", "value": "" }, "4": { "name": "Discord name", "value": "TestAccount#1012" } } } } } '; $j = json_decode($json, TRUE); foreach($j['response'] as $response) { foreach($response['fields'] as $fields){ if($fields['name'] == 'Discord name') { echo $fields['value']; } } }

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.0070.01118.13
8.3.50.0160.00616.21
8.3.40.0110.00418.75
8.3.30.0040.01118.63
8.3.20.0080.00019.20
8.3.10.0080.00023.52
8.3.00.0000.00823.61
8.2.180.0080.01316.63
8.2.170.0070.00722.96
8.2.160.0120.00319.08
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00420.53
8.2.120.0000.00726.35
8.2.110.0000.00819.24
8.2.100.0000.01118.34
8.2.90.0040.00417.97
8.2.80.0040.00418.05
8.2.70.0040.00417.93
8.2.60.0000.00718.16
8.2.50.0000.00918.10
8.2.40.0080.00019.47
8.2.30.0000.00719.40
8.2.20.0070.00018.01
8.2.10.0040.00419.56
8.2.00.0070.00019.44
8.1.280.0180.00025.92
8.1.270.0150.00021.98
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00423.79
8.1.230.0090.00522.59
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.01117.23
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0030.00518.59
8.1.160.0070.00018.82
8.1.150.0000.00818.90
8.1.140.0070.00019.61
8.1.130.0030.00319.09
8.1.120.0030.00517.48
8.1.110.0000.00717.46
8.1.100.0080.00017.42
8.1.90.0030.00517.52
8.1.80.0000.00717.37
8.1.70.0040.00417.45
8.1.60.0000.00817.60
8.1.50.0050.00317.54
8.1.40.0050.00317.43
8.1.30.0030.00817.73
8.1.20.0040.00417.55
8.1.10.0040.00417.59
8.1.00.0050.00317.50
8.0.300.0060.00319.73
8.0.290.0030.00516.63
8.0.280.0050.00318.46
8.0.270.0070.00017.28
8.0.260.0100.00017.32
8.0.250.0070.00016.88
8.0.240.0030.00316.99
8.0.230.0030.00316.93
8.0.220.0000.00716.89
8.0.210.0030.00316.91
8.0.200.0020.00516.97
8.0.190.0050.00316.96
8.0.180.0030.00616.94
8.0.170.0040.00416.98
8.0.160.0040.00316.82
8.0.150.0000.00716.83
8.0.140.0040.00416.88
8.0.130.0000.00613.21
8.0.120.0000.00716.84
8.0.110.0000.00816.89
8.0.100.0040.00416.79
8.0.90.0040.00416.75
8.0.80.0050.01016.86
8.0.70.0040.00416.96
8.0.60.0030.00516.94
8.0.50.0000.00716.89
8.0.30.0080.01017.02
8.0.20.0110.00917.40
8.0.10.0000.00716.92
8.0.00.0130.00916.74
7.4.330.0030.00315.55
7.4.320.0030.00616.50
7.4.300.0030.00316.49
7.4.290.0000.00616.62
7.4.280.0050.00316.59
7.4.270.0070.00016.52
7.4.260.0000.00716.48
7.4.250.0040.00416.58
7.4.240.0030.00516.44
7.4.230.0000.00716.50
7.4.220.0040.00416.59
7.4.210.0100.00716.60
7.4.200.0030.00316.61
7.4.160.0110.00916.48
7.4.140.0100.01017.86
7.4.130.0170.00416.52
7.4.120.0100.01016.50
7.4.110.0070.01016.41
7.4.100.0130.01016.40
7.4.90.0130.00616.45
7.4.80.0070.01719.39
7.4.70.0130.01016.61
7.4.60.0070.01016.39
7.4.50.0070.00716.48
7.4.40.0140.00716.50
7.4.10.0070.01116.54
7.4.00.0040.00915.71
7.3.330.0000.00613.07
7.3.320.0030.00313.11
7.3.310.0040.00416.14
7.3.300.0000.00716.29
7.3.290.0070.00016.18
7.3.280.0080.00916.10
7.3.260.0060.01016.36
7.3.240.0110.01016.38
7.3.230.0120.00916.52
7.3.210.0180.00416.61
7.3.200.0060.01216.32
7.3.190.0060.00916.36
7.3.180.0160.00016.31
7.3.170.0100.00716.49
7.3.160.0060.00916.27
7.3.130.0100.00716.56
7.3.120.0050.01315.72
7.3.110.0080.00615.60
7.3.100.0030.01015.55
7.3.90.0060.00615.60
7.3.80.0060.00515.38
7.3.70.0040.00815.56
7.3.60.0040.00615.49
7.3.50.0090.00515.54
7.3.40.0060.01015.65
7.3.30.0050.00915.49
7.3.20.0040.01217.40
7.3.10.0030.01217.48
7.3.00.0060.00517.27
7.2.330.0090.00916.50
7.2.320.0160.00616.79
7.2.310.0030.01416.51
7.2.300.0040.01316.71
7.2.290.0100.01116.71
7.2.260.0090.00316.54
7.2.250.0120.00616.46
7.2.240.0100.00715.99
7.2.230.0110.00515.99
7.2.220.0100.00615.82
7.2.210.0030.01016.00
7.2.200.0030.01115.88
7.2.190.0060.01115.82
7.2.180.0050.01115.81
7.2.170.0000.01615.77
7.2.160.0040.01115.77
7.2.150.0070.00717.81
7.2.140.0050.01017.60
7.2.130.0070.00617.64
7.2.120.0100.00817.71
7.2.110.0210.00517.43
7.2.100.0070.00817.62
7.2.90.0090.00717.66
7.2.80.0250.00616.60
7.2.70.0270.00816.81
7.2.60.0540.00316.67
7.2.50.0250.00916.56
7.2.40.0280.00816.74
7.2.30.0300.00416.87
7.2.20.0250.00916.68
7.2.10.0240.00816.78
7.2.00.0290.00616.74
7.1.330.0080.00816.68
7.1.320.0020.00916.65
7.1.310.0020.01016.42
7.1.300.0040.00716.63
7.1.290.0050.00916.54
7.1.280.0070.00916.57
7.1.270.0070.00916.64
7.1.260.0070.00616.51
7.1.250.0070.00816.42
7.1.240.0100.00317.30
7.1.230.0030.01017.19
7.1.220.0060.00617.19
7.1.210.0070.01317.36
7.1.200.0040.00516.71
7.1.190.0350.00915.28
7.1.180.0340.00815.36
7.1.170.0370.00715.44
7.1.160.0360.00315.39
7.1.150.0370.00615.37
7.1.140.0330.01015.32
7.1.130.0330.00615.54
7.1.120.0370.00815.44
7.1.110.0350.00915.47
7.1.100.0360.00815.58
7.1.90.0550.00415.46
7.1.80.0610.00315.35
7.1.70.0510.00615.54
7.1.60.0600.01224.58
7.1.50.0730.01024.38
7.1.40.0820.00924.59
7.1.30.0620.01824.45
7.1.20.0740.00924.56
7.1.10.0760.00515.63
7.1.00.0490.00815.47
7.0.330.0120.00316.94
7.0.320.0000.01016.83
7.0.310.0050.01017.04
7.0.300.0030.00616.89
7.0.290.0100.00317.01
7.0.280.0090.00317.00
7.0.270.0030.01216.81
7.0.260.0040.00716.72
7.0.250.0110.00417.14
7.0.240.0060.00316.82
7.0.230.0070.00716.86
7.0.220.0030.00916.91
7.0.210.0130.00016.99
7.0.200.0000.01116.77
7.0.190.0030.00816.88
7.0.180.0000.01716.96
7.0.170.0000.01217.09
7.0.160.0090.00316.99
7.0.150.0110.00416.93
7.0.140.0120.00416.80
7.0.130.0090.00617.01
7.0.120.0060.01016.76
7.0.110.0030.00717.10
7.0.100.0030.00716.91
7.0.90.0000.01417.00
7.0.80.0030.01016.80
7.0.70.0030.00616.81
7.0.60.0070.00316.91
7.0.50.0050.00816.88
7.0.40.0070.00714.92
7.0.30.0090.00614.92
7.0.20.0060.00915.00
7.0.10.0060.00614.79
7.0.00.0000.01114.90
5.6.400.0040.01215.74
5.6.390.0060.00915.84
5.6.380.0080.00816.02
5.6.370.0030.01415.89
5.6.360.0060.00315.64
5.6.350.0070.01116.09
5.6.340.0040.00816.05
5.6.330.0120.00316.06
5.6.320.0030.00915.90
5.6.310.0080.00316.11
5.6.300.0040.00716.10
5.6.290.0080.00415.63
5.6.280.0070.00716.33
5.6.270.0040.00815.64
5.6.260.0040.00716.12
5.6.250.0030.00615.98
5.6.240.0100.00315.93
5.6.230.0030.01216.04
5.6.220.0030.00816.14
5.6.210.0040.01116.01
5.6.200.0060.00915.71
5.6.190.0000.01615.95
5.6.180.0030.01015.71
5.6.170.0040.00715.75
5.6.160.0100.00715.78
5.6.150.0140.00315.73
5.6.140.0040.01115.84
5.6.130.0070.00716.00
5.6.120.0060.00615.97
5.6.110.0040.00815.93
5.6.100.0000.00916.06
5.6.90.0070.00715.74
5.6.80.0030.01015.84
5.6.70.0000.01415.47
5.6.60.0000.01315.87
5.6.50.0000.01716.12
5.6.40.0070.01015.83
5.6.30.0040.00815.84
5.6.20.0070.00415.84
5.6.10.0030.00616.00
5.6.00.0000.01315.93

preferences:
62.25 ms | 401 KiB | 5 Q