3v4l.org

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

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.01416.50
8.3.50.0150.00617.79
8.3.40.0140.00718.70
8.3.30.0080.00818.77
8.3.20.0110.00420.16
8.3.10.0050.00323.56
8.3.00.0060.00319.38
8.2.180.0130.01018.54
8.2.170.0100.00322.96
8.2.160.0070.00722.26
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00817.12
8.2.120.0050.00226.35
8.2.110.0060.00319.45
8.2.100.0080.00317.80
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0060.00319.46
8.2.30.0030.00320.52
8.2.20.0090.00017.56
8.2.10.0040.00417.93
8.2.00.0040.00417.83
8.1.280.0100.01025.92
8.1.270.0090.00022.08
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00319.42
8.1.230.0080.00417.52
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.10
8.1.190.0060.00317.00
8.1.180.0040.00418.10
8.1.170.0040.00420.01
8.1.160.0000.00821.93
8.1.150.0000.00718.61
8.1.140.0030.00519.35
8.1.130.0030.00317.60
8.1.120.0000.00717.36
8.1.110.0060.00317.31
8.1.100.0000.00817.35
8.1.90.0050.00317.32
8.1.80.0000.00817.24
8.1.70.0030.00317.30
8.1.60.0050.00317.43
8.1.50.0030.00617.30
8.1.40.0050.00317.51
8.1.30.0000.00917.55
8.1.20.0050.00317.63
8.1.10.0040.00417.46
8.1.00.0000.00817.41
8.0.300.0000.01118.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0040.00417.30
8.0.260.0030.00317.25
8.0.250.0000.00716.89
8.0.240.0060.00016.77
8.0.230.0070.00016.86
8.0.220.0030.00316.71
8.0.210.0030.00316.65
8.0.200.0030.00316.82
8.0.190.0060.00316.75
8.0.180.0070.00016.63
8.0.170.0000.00816.78
8.0.160.0070.00016.72
8.0.150.0000.00716.70
8.0.140.0070.00016.72
8.0.130.0000.00513.16
8.0.120.0030.00616.72
8.0.110.0000.00716.75
8.0.100.0040.00416.64
8.0.90.0050.00316.70
8.0.80.0070.01116.74
8.0.70.0040.00416.63
8.0.60.0040.00416.79
8.0.50.0000.00816.77
8.0.30.0140.00517.19
8.0.20.0080.01017.40
8.0.10.0000.00816.77
8.0.00.0080.01016.70
7.4.330.0020.00216.88
7.4.320.0030.00316.30
7.4.300.0060.00016.41
7.4.290.0030.00316.46
7.4.280.0000.00716.41
7.4.270.0000.00616.38
7.4.260.0030.00516.41
7.4.250.0000.00816.44
7.4.240.0010.00616.49
7.4.230.0000.00716.58
7.4.220.0070.01016.33
7.4.210.0030.01216.51
7.4.200.0030.00316.27
7.4.160.0090.00616.54
7.4.150.0030.01317.40
7.4.140.0080.01217.86
7.4.130.0060.01416.44
7.4.120.0070.01016.35
7.4.110.0130.00416.48
7.4.100.0070.01016.50
7.4.90.0140.00716.48
7.4.80.0070.01019.39
7.4.70.0100.01116.44
7.4.60.0130.00316.37
7.4.50.0030.01316.48
7.4.40.0100.01016.26
7.4.30.0140.00316.48
7.4.00.0040.01114.82
7.3.330.0030.00313.23
7.3.320.0050.00013.01
7.3.310.0000.00716.27
7.3.300.0030.00316.16
7.3.290.0100.00716.24
7.3.280.0080.00816.26
7.3.270.0060.01217.40
7.3.260.0110.01116.28
7.3.250.0170.00716.20
7.3.240.0070.01116.36
7.3.230.0160.00016.39
7.3.210.0090.00616.47
7.3.200.0060.00916.23
7.3.190.0100.01016.30
7.3.180.0030.01316.30
7.3.170.0090.00616.56
7.3.160.0030.01316.22
7.3.10.0120.00316.56
7.3.00.0090.00616.70
7.2.330.0190.00016.55
7.2.320.0070.01016.27
7.2.310.0130.00316.38
7.2.300.0080.00816.41
7.2.290.0040.01316.31
7.2.130.0100.00716.84
7.2.120.0130.00316.61
7.2.110.0000.01316.57
7.2.100.0110.00316.84
7.2.90.0130.00016.82
7.2.80.0030.01016.56
7.2.70.0070.00717.01
7.2.60.0050.00816.80
7.2.50.0040.00716.45
7.2.40.0100.00716.94
7.2.30.0030.01316.73
7.2.20.0000.01116.71
7.2.10.0000.01616.86
7.2.00.0060.00917.80
7.1.250.0080.00415.50
7.1.200.0050.00315.50
7.1.100.0070.00717.92
7.1.70.0080.00316.93
7.1.60.0030.01719.48
7.1.50.0100.01016.97
7.1.00.0030.07722.40
7.0.200.0140.00014.50
7.0.60.0070.08319.96
7.0.50.0070.07717.87
7.0.40.0100.08320.18
7.0.30.0200.09020.28
7.0.20.0330.08320.28
7.0.10.0070.04020.28
7.0.00.0070.03720.20
5.6.280.0000.04720.86
5.6.210.0100.07320.70
5.6.200.0030.04318.18
5.6.190.0130.03720.63
5.6.180.0200.06320.67
5.6.170.0300.04720.62
5.6.160.0000.05320.52
5.6.150.0100.03318.15
5.6.140.0230.03318.13
5.6.130.0000.07718.12
5.6.120.0030.06320.98
5.6.110.0070.08720.94
5.6.100.0030.06721.11
5.6.90.0100.07020.99
5.6.80.0030.06720.38
5.5.350.2500.03720.32
5.5.340.0000.05718.08
5.5.330.0100.09020.43
5.5.320.0130.04320.34
5.5.310.0270.03020.51
5.5.300.0030.04717.98
5.5.290.0170.05717.95
5.5.280.0130.06320.68
5.5.270.0000.04320.64
5.5.260.0030.08020.76
5.5.250.0100.07720.61
5.5.240.0130.04020.25

preferences:
46.93 ms | 400 KiB | 5 Q