3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const function = 'bar'; function showBar(){ echo $this->function; } }

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.00716.50
8.3.50.0080.01021.90
8.3.40.0070.00718.67
8.3.30.0090.00618.57
8.3.20.0040.00420.21
8.3.10.0040.00423.53
8.3.00.0080.00019.04
8.2.180.0180.00418.16
8.2.170.0110.00422.96
8.2.160.0100.00322.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00617.38
8.2.120.0000.00726.35
8.2.110.0110.00020.52
8.2.100.0070.00317.80
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0050.00317.78
8.2.50.0030.00518.07
8.2.40.0040.00419.28
8.2.30.0000.00720.62
8.2.20.0040.00717.56
8.2.10.0020.00517.84
8.2.00.0000.00717.84
8.1.280.0100.01025.92
8.1.270.0090.00023.96
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.36
8.1.230.0060.00617.43
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.00
8.1.190.0040.00416.87
8.1.180.0000.00818.10
8.1.170.0040.00420.04
8.1.160.0000.00721.86
8.1.150.0000.00718.73
8.1.140.0050.00319.32
8.1.130.0030.00317.43
8.1.120.0040.00417.22
8.1.110.0030.00717.30
8.1.100.0000.00817.36
8.1.90.0040.00417.31
8.1.80.0000.00717.18
8.1.70.0070.00017.13
8.1.60.0040.00417.44
8.1.50.0060.00317.38
8.1.40.0030.00517.42
8.1.30.0080.00017.55
8.1.20.0030.00517.41
8.1.10.0000.00717.36
8.1.00.0090.00017.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00818.23
8.0.270.0000.00717.12
8.0.260.0000.00617.20
8.0.250.0000.00816.80
8.0.240.0070.00016.77
8.0.230.0000.00816.69
8.0.220.0000.00716.69
8.0.210.0030.00516.76
8.0.200.0030.00316.68
8.0.190.0040.00416.84
8.0.180.0000.00716.80
8.0.170.0000.00816.78
8.0.160.0070.00016.67
8.0.150.0070.00016.70
8.0.140.0000.00716.56
8.0.130.0060.00013.18
8.0.120.0000.00816.79
8.0.110.0040.00416.70
8.0.100.0040.00416.80
8.0.90.0000.00716.73
8.0.80.0030.01316.79
8.0.70.0070.00016.70
8.0.60.0000.00716.64
8.0.50.0040.00416.63
8.0.30.0100.01216.80
8.0.20.0130.00617.40
8.0.10.0000.00716.86
8.0.00.0080.01016.57
7.4.330.0050.00016.91
7.4.320.0030.00316.48
7.4.300.0040.00416.26
7.4.290.0050.00216.38
7.4.280.0030.00516.50
7.4.270.0030.00316.39
7.4.260.0050.00316.49
7.4.250.0000.00816.44
7.4.240.0070.00016.48
7.4.230.0030.00316.50
7.4.220.0130.00316.47
7.4.210.0030.01016.52
7.4.200.0030.00316.37
7.4.160.0130.00316.33
7.4.150.0150.00317.40
7.4.140.0130.00517.86
7.4.130.0090.01216.41
7.4.120.0100.00716.46
7.4.110.0120.00916.29
7.4.100.0100.01316.43
7.4.90.0040.01316.27
7.4.80.0060.01219.39
7.4.70.0040.01616.37
7.4.60.0090.00616.31
7.4.50.0110.00716.27
7.4.40.0120.00516.17
7.4.30.0080.00916.45
7.4.00.0060.01314.75
7.3.330.0020.00213.25
7.3.320.0030.00313.14
7.3.310.0030.00315.98
7.3.300.0040.00416.17
7.3.290.0110.00416.18
7.3.280.0100.00816.19
7.3.270.0100.00717.40
7.3.260.0090.00916.25
7.3.250.0060.01116.31
7.3.240.0040.01316.25
7.3.230.0030.01416.39
7.3.210.0070.01516.10
7.3.200.0130.00416.29
7.3.190.0080.00916.42
7.3.180.0100.00516.07
7.3.170.0120.01316.27
7.3.160.0040.01216.48
7.3.120.0090.00914.81
7.3.110.0110.00714.88
7.3.100.0100.00314.65
7.3.90.0100.00714.73
7.3.80.0080.00614.74
7.3.70.0070.00714.69
7.3.60.0060.00614.57
7.3.50.0070.00714.80
7.3.40.0000.01014.52
7.3.30.0080.00414.79
7.3.20.0110.00416.12
7.3.10.0110.00316.54
7.3.00.0100.00316.43
7.2.330.0150.00316.49
7.2.320.0090.00916.28
7.2.310.0110.00416.12
7.2.300.0110.00616.54
7.2.290.0060.01816.50
7.2.250.0110.00714.77
7.2.240.0100.01014.96
7.2.230.0040.01114.75
7.2.220.0080.00814.68
7.2.210.0030.01314.76
7.2.200.0000.01814.51
7.2.190.0110.00714.70
7.2.180.0070.01014.77
7.2.170.0030.01414.70
7.2.60.0040.01116.30
7.2.00.0120.00918.30
7.1.330.0030.01015.70
7.1.320.0000.01215.66
7.1.310.0060.00315.53
7.1.300.0000.01415.57
7.1.290.0060.00615.62
7.1.280.0040.01115.71
7.1.270.0080.00415.51
7.1.260.0070.00715.43
7.1.200.0070.00715.65
7.1.100.0030.00917.85
7.1.70.0030.00616.87
7.1.60.0040.01419.48
7.1.50.0150.00616.53
7.1.00.0000.08022.31
7.0.200.0270.00314.31
7.0.60.0170.07319.89
7.0.50.0070.08017.94
7.0.40.0000.09320.05
7.0.30.0200.03720.32
7.0.20.0270.05020.15
7.0.10.0070.09020.23
7.0.00.0070.04020.22
5.6.210.0070.07020.60
5.6.200.0000.04318.27
5.6.190.0000.05020.63
5.6.180.0270.08020.50
5.6.170.0230.05020.55
5.6.160.0070.04320.44
5.6.150.0130.03718.18
5.6.140.0070.04018.28
5.6.130.0030.07018.15
5.6.120.0130.08021.07
5.6.110.0100.08721.01
5.6.100.0070.04321.10
5.6.90.0100.08021.02
5.6.80.0200.07020.50
5.5.350.4230.04020.43
5.5.340.0000.06717.95
5.5.330.0030.08720.41
5.5.320.0270.08020.35
5.5.310.0070.05020.29
5.5.300.0100.07318.04
5.5.290.0070.08017.98
5.5.280.0070.08320.87
5.5.270.0070.08720.66
5.5.260.0130.06020.64
5.5.250.0030.05020.71
5.5.240.0230.07320.25

preferences:
50.28 ms | 401 KiB | 5 Q