3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL|E_STICT); class Foo { const FOO = 'foo'; } class Bar { function showFoo() { return self::FOO; } } $bar = new Bar(); var_dump($bar->showFoo());

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.0110.00416.61
8.3.50.0080.00921.13
8.3.40.0070.00718.97
8.3.30.0070.00718.77
8.3.20.0070.00020.27
8.3.10.0000.00823.74
8.3.00.0100.00319.68
8.2.180.0110.00716.63
8.2.170.0130.01022.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00317.38
8.2.110.0030.00620.93
8.2.100.0060.00617.72
8.2.90.0060.00319.21
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0030.00718.10
8.2.40.0050.00219.40
8.2.30.0040.00419.71
8.2.20.0040.00417.79
8.2.10.0030.00518.05
8.2.00.0050.00217.95
8.1.280.0070.01325.92
8.1.270.0040.00420.33
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.83
8.1.230.0040.00717.77
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0070.00317.35
8.1.180.0000.00818.10
8.1.170.0030.00518.53
8.1.160.0040.00422.06
8.1.150.0000.00718.69
8.1.140.0050.00317.33
8.1.130.0020.00517.58
8.1.120.0040.00417.29
8.1.110.0040.00417.43
8.1.100.0040.00417.28
8.1.90.0000.00717.35
8.1.80.0000.00717.44
8.1.70.0000.00717.23
8.1.60.0060.00317.51
8.1.50.0050.00317.33
8.1.40.0050.00317.44
8.1.30.0030.00617.57
8.1.20.0080.00017.51
8.1.10.0030.00517.43
8.1.00.0040.00417.47
8.0.300.0030.00518.77
8.0.290.0050.00216.75
8.0.280.0000.00718.34
8.0.270.0000.00717.16
8.0.260.0030.00317.16
8.0.250.0040.00417.01
8.0.240.0050.00216.91
8.0.230.0000.00917.03
8.0.220.0070.00016.98
8.0.210.0030.00616.93
8.0.200.0070.00017.00
8.0.190.0070.00316.90
8.0.180.0040.00416.97
8.0.170.0040.00416.97
8.0.160.0050.00316.83
8.0.150.0000.00716.90
8.0.140.0040.00416.91
8.0.130.0030.00313.40
8.0.120.0060.00316.88
8.0.110.0040.00416.86
8.0.100.0070.00017.00
8.0.90.0000.00716.84
8.0.80.0100.00916.96
8.0.70.0000.00716.74
8.0.60.0030.00516.78
8.0.50.0000.00716.88
8.0.30.0140.00517.17
8.0.20.0100.00917.40
8.0.10.0070.00016.82
8.0.00.0090.00816.81
7.4.330.0030.00315.08
7.4.320.0000.00616.61
7.4.300.0030.00516.61
7.4.290.0000.00816.47
7.4.280.0070.00016.61
7.4.270.0030.00316.61
7.4.260.0040.00416.45
7.4.250.0080.00016.44
7.4.240.0000.00716.61
7.4.230.0000.00716.48
7.4.220.0120.00616.51
7.4.210.0120.00916.54
7.4.200.0000.00716.23
7.4.160.0070.01016.49
7.4.150.0140.00617.40
7.4.140.0200.00217.86
7.4.130.0090.00816.46
7.4.120.0100.00716.51
7.4.110.0090.00916.45
7.4.100.0110.01016.53
7.4.90.0070.01116.44
7.4.80.0110.00519.39
7.4.70.0070.01016.54
7.4.60.0070.01016.60
7.4.50.0080.00016.40
7.4.40.0150.00616.48
7.4.30.0030.01516.40
7.4.00.0060.00915.07
7.3.330.0000.00513.36
7.3.320.0000.00513.20
7.3.310.0030.00316.26
7.3.300.0050.00316.35
7.3.290.0090.00816.38
7.3.280.0090.01216.38
7.3.270.0120.01217.40
7.3.260.0070.01016.53
7.3.250.0160.00516.54
7.3.240.0100.00716.49
7.3.230.0100.01316.39
7.3.210.0100.00616.38
7.3.200.0100.00616.44
7.3.190.0130.00316.55
7.3.180.0150.00916.41
7.3.170.0100.00716.42
7.3.160.0030.01316.51
7.2.330.0040.01316.34
7.2.320.0070.01216.67
7.2.310.0150.00616.38
7.2.300.0000.02016.61
7.2.290.0140.00716.75
7.2.60.0060.00616.91
7.2.00.0040.00819.29
7.1.200.0210.00015.27
7.1.100.0060.00618.30
7.1.70.0040.00716.93
7.1.60.0070.01819.13
7.1.50.0070.01316.62
7.1.00.0000.08022.28
7.0.200.0130.00314.65
7.0.60.0030.09019.95
7.0.50.0070.05017.83
7.0.40.0070.05320.30
7.0.30.0270.08720.15
7.0.20.0270.05020.18
7.0.10.0100.03720.15
7.0.00.0000.04720.38
5.6.280.0070.06320.91
5.6.210.0070.04720.73
5.6.200.0170.07018.25
5.6.190.0230.06320.50
5.6.180.3000.04720.67
5.6.170.0200.04720.52
5.6.160.0130.07320.54
5.6.150.0000.04318.21
5.6.140.0070.03718.28
5.6.130.0000.07318.21
5.6.120.0100.05721.12
5.6.110.0130.06720.89
5.6.100.0070.08020.95
5.6.90.0100.06020.88
5.6.80.0130.06320.40
5.6.70.4470.03320.52
5.5.350.0370.06720.33
5.5.340.0030.06717.99
5.5.330.0070.07020.28
5.5.320.0270.04320.51
5.5.310.0330.07020.37
5.5.300.0070.04317.98
5.5.290.0100.06017.96
5.5.280.0070.04020.80
5.5.270.0070.04020.93
5.5.260.0170.07020.76
5.5.250.0070.07020.68
5.5.240.0370.06320.25
5.4.450.0730.06019.61
5.4.440.0670.06719.45
5.4.430.0730.07019.34
5.4.420.0730.04319.16
5.4.410.0700.05719.03
5.4.400.0730.04718.98
5.4.390.0800.05718.98
5.4.380.0670.05718.87
5.4.370.0600.05719.28
5.4.360.0570.06319.12
5.4.350.0800.05319.01
5.4.340.1000.05319.26
5.4.320.0830.05718.84
5.4.310.0770.05019.29
5.4.300.0800.05319.22
5.4.290.0700.05719.14
5.4.280.0670.05319.15
5.4.270.0770.03719.38
5.4.260.0700.05719.05
5.4.250.0730.04319.25
5.4.240.0730.05018.97
5.4.230.0870.05019.25
5.4.220.0970.04718.98
5.4.210.0730.04318.97
5.4.200.0800.04019.13
5.4.190.0730.04719.14
5.4.180.0870.04319.10
5.4.170.0770.05718.99
5.4.160.0870.04718.82
5.4.150.1170.05719.28
5.4.140.1070.05716.42
5.4.130.0830.04716.61
5.4.120.0700.06016.75
5.4.110.0700.06716.30
5.4.100.0730.05316.47
5.4.90.0870.04316.67
5.4.80.0870.06316.68
5.4.70.0270.03716.31
5.4.60.0430.03316.56
5.4.50.0070.05016.33
5.4.40.0000.03716.25
5.4.30.0000.07016.43
5.4.20.0230.06316.52

preferences:
50.32 ms | 401 KiB | 5 Q