3v4l.org

run code in 300+ PHP versions simultaneously
<?php hell: try { echo PHP; } catch (\Error $e) { if (str_contains($e->getMessage(), 'Undefined constant')) { $constValue = substr($e->getMessage(), 20, -1); define($constValue, $constValue); goto hell; } }

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.30.0130.00817.43
8.5.20.0120.00517.95
8.5.10.0080.01016.70
8.5.00.0120.00920.00
8.4.180.0100.01319.78
8.4.170.0140.00820.45
8.4.160.0120.01022.17
8.4.150.0080.00416.89
8.4.140.0140.00817.52
8.4.130.0120.00819.78
8.4.120.0130.00723.95
8.4.110.0100.01023.35
8.4.100.0120.00917.85
8.4.90.0150.00518.56
8.4.80.0140.00717.80
8.4.70.0080.01218.02
8.4.60.0030.00518.85
8.4.50.0140.00717.76
8.4.40.0130.00617.57
8.4.30.0130.00620.32
8.4.20.0160.00418.19
8.4.10.0000.00921.32
8.3.300.0130.01020.80
8.3.290.0110.00920.74
8.3.280.0090.01120.79
8.3.270.0060.00816.56
8.3.260.0110.00316.81
8.3.250.0110.00818.96
8.3.240.0120.00719.03
8.3.230.0110.00416.57
8.3.220.0060.00217.15
8.3.210.0110.01016.88
8.3.200.0110.00816.64
8.3.190.0100.00516.57
8.3.180.0100.00616.55
8.3.170.0050.00516.69
8.3.160.0110.00718.61
8.3.150.0120.00618.86
8.3.140.0040.00420.70
8.3.130.0090.00618.47
8.3.120.0030.00619.07
8.3.110.0060.00320.94
8.3.100.0100.00724.06
8.3.90.0080.00026.77
8.3.80.0060.00319.36
8.3.70.0110.00718.15
8.3.60.0110.00418.31
8.3.50.0120.00524.41
8.3.40.0100.00721.70
8.3.30.0090.00918.73
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.300.0150.00822.18
8.2.290.0070.01120.63
8.2.280.0040.00418.51
8.2.270.0070.01116.86
8.2.260.0000.00816.45
8.2.250.0050.00317.02
8.2.240.0070.00318.84
8.2.230.0050.00322.58
8.2.220.0030.00637.54
8.2.210.0180.00026.77
8.2.200.0100.00018.88
8.2.190.0100.01016.58
8.2.180.0070.00725.92
8.2.170.0110.00319.04
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0110.00026.16
8.2.120.0050.00326.35
8.2.110.0090.00020.35
8.2.100.0040.00817.84
8.2.90.0050.00318.09
8.2.80.0000.00818.61
8.2.70.0040.00417.50
8.2.60.0080.00017.63
8.2.50.0040.00417.88
8.2.40.0040.00419.47
8.2.30.0040.00418.07
8.2.20.0000.00818.11
8.2.10.0000.00719.29
8.2.00.0000.00719.22
8.1.340.0120.00817.53
8.1.330.0120.00722.13
8.1.320.0110.00816.09
8.1.310.0060.01216.21
8.1.300.0110.00318.36
8.1.290.0090.00030.84
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00628.09
8.1.250.0030.00528.09
8.1.240.0040.00422.00
8.1.230.0060.00623.91
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0000.00818.90
8.1.150.0040.00418.88
8.1.140.0000.00718.88
8.1.130.0030.00320.18
8.1.120.0000.00817.47
8.1.110.0040.00417.45
8.1.100.0000.00817.34
8.1.90.0000.00717.45
8.1.80.0040.00417.43
8.1.70.0030.00317.32
8.1.60.0030.00617.46
8.1.50.0050.00617.51
8.1.40.0000.00817.52
8.1.30.0080.00017.63
8.1.20.0040.00417.59
8.1.10.0040.00417.51
8.1.00.0030.00617.55
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0070.00018.34
8.0.270.0030.00317.97
8.0.260.0000.00618.52
8.0.250.0000.00717.04
8.0.240.0000.00617.03
8.0.230.0030.00316.88
8.0.220.0000.00716.96
8.0.210.0030.00316.88
8.0.200.0050.00217.06
8.0.190.0000.00716.95
8.0.180.0000.00716.96
8.0.170.0050.00316.85
8.0.160.0040.00416.98
8.0.150.0000.00716.84
8.0.140.0080.00016.79
8.0.130.0070.00013.41
8.0.120.0000.00716.93
8.0.110.0030.00516.91
8.0.100.0040.00416.91
8.0.90.0070.00016.89
8.0.80.0110.00716.94
8.0.70.0050.00216.97
8.0.60.0030.00516.97
8.0.50.0030.00517.05
8.0.30.0090.00916.90
8.0.20.0080.01017.01
8.0.10.0090.01017.04
8.0.00.0090.00916.99
7.4.330.0020.00215.55
7.4.320.0000.00816.51
7.4.300.0000.00716.39
7.4.290.0080.00016.21
7.4.280.0080.00316.53
7.4.270.0040.00416.52
7.4.260.0040.00416.54
7.4.250.0040.00416.50
7.4.240.0030.00316.46
7.4.230.0000.00716.33
7.4.220.0040.00416.35
7.4.210.0100.00616.50
7.4.200.0070.00016.31
7.4.160.0090.00816.51
7.4.150.0090.00816.46
7.4.140.0080.00816.37
7.4.130.0090.00916.39
7.4.120.0100.00816.38
7.4.110.0080.01016.32
7.4.100.0080.00916.42
7.4.90.0090.01016.39
7.4.80.0100.00716.39
7.4.70.0070.01116.36
7.4.60.0100.00916.38
7.4.50.0100.00916.29
7.4.40.0080.01016.29
7.4.30.0100.00916.34
7.4.20.0100.00816.30
7.4.10.0090.00916.34
7.4.00.0090.00816.33
7.3.330.0000.00716.33
7.3.320.0060.00013.10
7.3.310.0040.00416.25
7.3.300.0000.00616.15
7.3.290.0070.01016.21
7.3.280.0090.00816.18
7.3.270.0070.01016.18
7.3.260.0080.01016.23
7.3.250.0100.00816.19
7.3.240.0090.00916.18
7.3.230.0100.00716.19
7.3.220.0090.00916.20
7.3.210.0090.00916.20
7.3.200.0080.00916.19
7.3.190.0090.00916.21
7.3.180.0080.00916.24
7.3.170.0070.01016.19
7.3.160.0100.00916.20
7.3.150.0090.00816.19
7.3.140.0090.00916.20
7.3.130.0090.00916.19
7.3.120.0080.00916.14
7.3.110.0080.00916.12
7.3.100.0080.00816.10
7.3.90.0090.00916.36
7.3.80.0100.00816.17
7.3.70.0090.00916.23
7.3.60.0080.00916.27
7.3.50.0080.00916.27
7.3.40.0100.00716.27
7.3.30.0080.00916.28
7.3.20.0170.00916.49
7.3.10.0090.00916.43
7.3.00.0110.00916.49

preferences:
42.6 ms | 1376 KiB | 5 Q