3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function bar() { echo 'foobar' . PHP_EOL; } } $a = new foo; $a::bar(); $a->bar(); foo::bar();

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.40.0100.00318.53
8.3.30.0110.00418.84
8.3.20.0020.00520.29
8.3.10.0060.00323.61
8.3.00.0040.00420.85
8.2.170.0120.00622.96
8.2.160.0100.00320.29
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00020.97
8.2.110.0060.00322.30
8.2.100.0080.00317.60
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00418.05
8.2.50.0000.00918.07
8.2.40.0030.00521.18
8.2.30.0000.00718.18
8.2.20.0040.00417.50
8.2.10.0030.00517.97
8.2.00.0040.00417.57
8.1.270.0090.00024.02
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00523.98
8.1.230.0070.00419.04
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.10
8.1.190.0080.00017.00
8.1.180.0000.00818.10
8.1.170.0050.00318.31
8.1.160.0030.00521.94
8.1.150.0000.00818.57
8.1.140.0070.00017.38
8.1.130.0070.00017.82
8.1.120.0000.00717.36
8.1.110.0070.00017.30
8.1.100.0000.00817.34
8.1.90.0040.00417.39
8.1.80.0050.00217.38
8.1.70.0000.00717.33
8.1.60.0060.00317.52
8.1.50.0080.00017.54
8.1.40.0000.00717.50
8.1.30.0030.00617.64
8.1.20.0050.00317.64
8.1.10.0040.00417.57
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0060.00317.05
8.0.280.0030.00518.44
8.0.270.0060.00317.18
8.0.260.0070.00017.19
8.0.250.0000.00716.95
8.0.240.0030.00316.73
8.0.230.0040.00416.89
8.0.220.0040.00416.71
8.0.210.0040.00416.70
8.0.200.0040.00416.84
8.0.190.0060.00316.88
8.0.180.0070.00016.80
8.0.170.0040.00416.88
8.0.160.0040.00416.76
8.0.150.0040.00416.80
8.0.140.0070.00016.80
8.0.130.0050.00313.31
8.0.120.0060.00316.68
8.0.110.0040.00416.82
8.0.100.0040.00416.87
8.0.90.0030.00516.63
8.0.80.0060.00916.76
8.0.70.0030.00516.71
8.0.60.0040.00416.64
8.0.50.0000.00816.70
8.0.30.0050.01717.04
8.0.20.0110.01017.40
8.0.10.0000.00716.75
8.0.00.0070.01216.76
7.4.330.0050.00015.02
7.4.320.0030.00316.54
7.4.300.0060.00016.50
7.4.290.0030.00316.48
7.4.280.0040.00416.57
7.4.270.0000.00716.50
7.4.260.0070.00016.46
7.4.250.0070.00016.45
7.4.240.0050.00216.57
7.4.230.0000.00716.48
7.4.220.0070.01016.67
7.4.210.0050.00916.44
7.4.200.0080.00016.40
7.4.190.0040.00416.54
7.4.160.0140.00316.64
7.4.150.0110.00817.40
7.4.140.0080.01417.86
7.4.130.0090.00916.52
7.4.120.0090.00816.55
7.4.110.0110.00616.63
7.4.100.0030.01916.55
7.4.90.0140.00316.47
7.4.80.0090.01019.39
7.4.70.0130.01016.64
7.4.60.0100.00716.47
7.4.50.0050.00216.53
7.4.40.0060.01016.27
7.4.30.0060.01016.40
7.4.00.0000.01315.03
7.3.330.0030.00313.24
7.3.320.0050.00013.29
7.3.310.0070.00016.29
7.3.300.0000.00616.12
7.3.290.0100.00716.25
7.3.280.0090.00716.30
7.3.270.0030.01517.40
7.3.260.0180.00616.52
7.3.250.0100.00916.56
7.3.240.0070.01016.52
7.3.230.0090.00916.57
7.3.210.0060.01116.46
7.3.200.0060.00919.39
7.3.190.0140.00716.43
7.3.180.0120.00516.48
7.3.170.0100.01016.39
7.3.160.0060.01016.46
7.3.120.0060.00914.62
7.3.10.0120.00316.63
7.3.00.0120.00416.42
7.2.330.0190.01316.68
7.2.320.0060.01316.28
7.2.310.0180.00016.43
7.2.300.0090.00616.57
7.2.290.0090.00916.62
7.2.130.0120.00316.59
7.2.120.0000.01516.82
7.2.110.0040.00716.82
7.2.100.0120.00016.91
7.2.90.0070.01016.96
7.2.80.0090.00616.78
7.2.70.0030.00716.79
7.2.60.0040.01116.98
7.2.50.0000.01016.54
7.2.40.0090.00616.94
7.2.30.0000.01316.81
7.2.20.0030.00916.75
7.2.10.0070.00716.91
7.2.00.0070.00817.97
7.1.250.0000.01015.75
7.1.100.0040.00818.10
7.1.70.0040.00416.97
7.1.60.0130.01319.46
7.1.50.0070.01416.65
7.1.00.0100.07022.27
7.0.200.0110.00016.88
7.0.140.0030.07322.02
7.0.60.0230.06319.91
7.0.50.0130.07017.86
7.0.40.0070.04320.27
7.0.30.0570.06720.20
7.0.20.0170.04020.23
7.0.10.0300.07720.25
7.0.00.0030.05720.11
5.6.280.0030.07320.86
5.6.210.0100.07320.51
5.6.200.0030.05718.22
5.6.190.0070.07320.64
5.6.180.3600.04320.59
5.6.170.0270.07720.48
5.6.160.0000.08720.46
5.6.150.0070.06018.27
5.6.140.0070.05318.14
5.6.130.0070.04718.27
5.6.120.0070.08020.92
5.6.110.0170.07021.03
5.6.100.0230.05720.96
5.6.90.0070.07020.99
5.6.80.0070.07020.36
5.5.350.0200.07020.46
5.5.340.0130.07717.98
5.5.330.0070.04020.28
5.5.320.0200.06720.43
5.5.310.0330.07720.41
5.5.300.0030.05018.08
5.5.290.0030.08317.92
5.5.280.0030.04320.80
5.5.270.0170.07020.84
5.5.260.0070.05720.86
5.5.250.0070.08020.61
5.5.240.0200.04320.04
5.4.450.0770.06319.21
5.4.440.0400.05319.59
5.4.430.0100.05319.64
5.4.420.0800.00019.46
5.4.410.0200.05018.68
5.4.400.0170.06018.82
5.4.390.0130.06318.61
5.4.380.0270.05018.53
5.4.370.0130.04718.62
5.4.360.0100.04018.77
5.4.350.0040.03912.02
5.4.340.0080.03712.02
5.4.320.0030.03812.50
5.4.310.0020.05512.50
5.4.300.0070.03512.50
5.4.290.0070.03912.50
5.4.280.0070.03512.39
5.4.270.0080.03612.39
5.4.260.0080.03512.40
5.4.250.0050.04612.39
5.4.240.0050.05212.40
5.4.230.0090.04912.39
5.4.220.0090.04812.39
5.4.210.0030.04312.38
5.4.200.0100.03612.39
5.4.190.0080.03512.38
5.4.180.0090.03512.38
5.4.170.0080.03812.39
5.4.160.0060.04012.39
5.4.150.0100.04212.38
5.4.140.0120.04512.07
5.4.130.0100.04412.06
5.4.120.0090.04412.01
5.4.110.0040.05012.02
5.4.100.0110.04312.02
5.4.90.0050.05012.02
5.4.80.0130.04512.01
5.4.70.0080.04112.01
5.4.60.0040.04512.01
5.4.50.0120.04812.00
5.4.40.0050.04211.99
5.4.30.0100.04211.99
5.4.20.0060.03911.99
5.4.10.0080.05111.99
5.4.00.0080.03711.48
5.3.290.0070.03812.80
5.3.280.0120.03712.71
5.3.270.0090.03812.73
5.3.260.0040.04212.71
5.3.250.0130.04012.72
5.3.240.0040.04812.72
5.3.230.0090.03812.71
5.3.220.0090.03912.68
5.3.210.0050.04012.68
5.3.200.0060.03812.68
5.3.190.0080.03612.68
5.3.180.0060.04012.68
5.3.170.0110.08612.67
5.3.160.0100.05012.67
5.3.150.0080.06212.68
5.3.140.0040.05912.66
5.3.130.0110.05912.66
5.3.120.0080.05512.66
5.3.110.0100.05312.66
5.3.100.0130.04812.12
5.3.90.0070.05312.10
5.3.80.0070.04112.09
5.3.70.0110.05312.09
5.3.60.0080.03612.07
5.3.50.0050.05112.02
5.3.40.0070.03812.02
5.3.30.0050.03511.98
5.3.20.0070.03611.76
5.3.10.0060.03711.72
5.3.00.0060.05211.71
5.2.170.0050.0319.22
5.2.160.0050.0289.21
5.2.150.0030.0329.21
5.2.140.0030.0369.21
5.2.130.0030.0359.17
5.2.120.0040.0309.17
5.2.110.0060.0309.18
5.2.100.0040.0309.18
5.2.90.0060.0279.18
5.2.80.0050.0299.17
5.2.70.0080.0269.17
5.2.60.0070.0299.13
5.2.50.0040.0309.10
5.2.40.0050.0299.07
5.2.30.0030.0339.05
5.2.20.0060.0289.04
5.2.10.0070.0258.94
5.2.00.0050.0308.80
5.1.60.0030.0258.09
5.1.50.0020.0288.09
5.1.40.0010.0288.06
5.1.30.0040.0268.42
5.1.20.0050.0298.44
5.1.10.0060.0298.17
5.1.00.0070.0278.16
5.0.50.0030.0216.64
5.0.40.0050.0186.51
5.0.30.0020.0366.31
5.0.20.0060.0186.28
5.0.10.0080.0176.26
5.0.00.0030.0366.25
4.4.90.0020.0164.77
4.4.80.0040.0144.76
4.4.70.0020.0174.76
4.4.60.0130.0324.75
4.4.50.0020.0184.77
4.4.40.0020.0284.71
4.4.30.0040.0154.76
4.4.20.0040.0164.84
4.4.10.0050.0194.85
4.4.00.0040.0334.76
4.3.110.0030.0234.67
4.3.100.0050.0204.66
4.3.90.0040.0194.64
4.3.80.0040.0324.58
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0060.0214.54
4.3.30.0010.0183.30
4.3.20.0030.0223.28
4.3.10.0000.0183.23
4.3.00.0170.0237.62

preferences:
49.61 ms | 400 KiB | 5 Q