3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_last_error()); $response = 'a{'; $matches = @json_decode($response); var_dump(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.0070.00718.20
8.3.50.0090.00616.38
8.3.40.0140.00718.38
8.3.30.0060.00818.38
8.3.20.0070.00020.20
8.3.10.0100.00021.90
8.3.00.0050.00319.67
8.2.180.0120.00618.16
8.2.170.0150.00322.96
8.2.160.0140.00718.91
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00019.36
8.2.120.0000.00726.35
8.2.110.0040.00420.95
8.2.100.0000.01117.91
8.2.90.0080.00019.05
8.2.80.0040.00418.04
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0040.00420.61
8.2.30.0060.00319.15
8.2.20.0000.00717.93
8.2.10.0000.00718.10
8.2.00.0000.00818.02
8.1.280.0060.00925.92
8.1.270.0020.00522.07
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00317.83
8.1.230.0070.00417.58
8.1.220.0050.00317.78
8.1.210.0060.00318.77
8.1.200.0060.00617.23
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0000.00818.56
8.1.160.0040.00418.94
8.1.150.0000.00718.87
8.1.140.0000.00719.48
8.1.130.0030.00318.79
8.1.120.0050.00317.48
8.1.110.0040.00417.41
8.1.100.0070.00017.50
8.1.90.0080.00017.46
8.1.80.0000.00717.46
8.1.70.0040.00417.48
8.1.60.0060.00317.48
8.1.50.0050.00317.48
8.1.40.0000.00817.48
8.1.30.0060.00317.57
8.1.20.0000.00717.51
8.1.10.0040.00417.52
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.43
8.0.270.0000.00717.27
8.0.260.0080.00016.88
8.0.250.0040.00416.98
8.0.240.0030.00616.82
8.0.230.0070.00016.88
8.0.220.0000.00616.90
8.0.210.0000.00716.88
8.0.200.0030.00316.89
8.0.190.0040.00416.90
8.0.180.0040.00416.80
8.0.170.0070.00016.91
8.0.160.0080.00016.76
8.0.150.0040.00416.73
8.0.140.0030.00316.85
8.0.130.0070.00313.28
8.0.120.0050.00316.81
8.0.110.0070.00016.82
8.0.100.0050.00216.74
8.0.90.0040.00416.95
8.0.80.0030.01616.77
8.0.70.0030.00616.76
8.0.60.0000.00716.74
8.0.50.0070.00016.72
8.0.30.0120.00717.06
8.0.20.0100.01017.40
8.0.10.0000.00816.88
8.0.00.0130.00816.82
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0060.00016.49
7.4.290.0030.00316.62
7.4.280.0020.00516.54
7.4.270.0000.00716.58
7.4.260.0030.00316.41
7.4.250.0040.00416.46
7.4.240.0050.00316.61
7.4.230.0070.00016.46
7.4.220.0060.01216.60
7.4.210.0070.01116.54
7.4.200.0070.00016.41
7.4.160.0070.01116.59
7.4.150.0060.01217.40
7.4.140.0120.00717.86
7.4.130.0170.00316.50
7.4.120.0130.00716.42
7.4.110.0000.01716.55
7.4.100.0030.01316.35
7.4.90.0150.00316.69
7.4.80.0060.01019.39
7.4.70.0040.01216.51
7.4.60.0080.00816.29
7.4.50.0060.00616.51
7.4.40.0040.01216.52
7.4.30.0120.00616.42
7.4.00.0070.01014.93
7.3.330.0050.00013.01
7.3.320.0050.00312.98
7.3.310.0040.00416.11
7.3.300.0030.00316.11
7.3.290.0090.00916.15
7.3.280.0080.00816.13
7.3.270.0060.01117.40
7.3.260.0100.01016.33
7.3.250.0110.00716.20
7.3.240.0110.00616.25
7.3.230.0120.00916.45
7.3.210.0170.00016.52
7.3.200.0110.01016.37
7.3.190.0090.00916.40
7.3.180.0080.00816.32
7.3.170.0090.00716.19
7.3.160.0120.00416.23
7.2.330.0130.01616.41
7.2.320.0150.00716.36
7.2.310.0030.01316.51
7.2.300.0060.01516.54
7.2.290.0110.01116.40
7.2.60.0040.01116.72
7.2.00.0040.00819.43
7.1.200.0040.00415.62
7.1.100.0040.01218.05
7.1.70.0070.00017.09
7.1.60.0120.00417.18
7.1.50.0000.01116.95
7.1.40.0000.01116.40
7.1.30.0060.00616.59
7.1.20.0040.00716.70
7.1.10.0000.00816.60
7.1.00.0000.01116.75
7.0.200.0030.00516.87
7.0.190.0040.00416.70
7.0.180.0000.00815.99
7.0.170.0070.00016.16
7.0.160.0040.00416.07
7.0.150.0000.00916.19
7.0.140.0000.00716.05
7.0.130.0070.00016.44
7.0.120.0040.00716.52
7.0.110.0030.00516.33
7.0.100.0030.00516.52
7.0.90.0000.00716.34
7.0.80.0070.00016.28
7.0.70.0000.00816.41
7.0.60.0000.00816.15
7.0.50.0000.00716.61
7.0.40.0030.00315.99
7.0.30.0000.00715.99
7.0.20.0040.01115.99
7.0.10.0000.00915.99
7.0.00.0000.01015.99

preferences:
39.77 ms | 401 KiB | 5 Q