3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function f1() { $allowed = false; $name = static::f2(); echo($name); } public static function f2() { return "hello"; } } class B extends A { public static function f2() { return "bye"; } } $b = new B(); $b->f1();

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.70.0130.01018.18
8.3.60.0040.01816.50
8.3.50.0110.00817.27
8.3.40.0150.00618.91
8.3.30.0080.00818.72
8.3.20.0050.00318.60
8.3.10.0060.00318.79
8.3.00.0090.01219.25
8.2.180.0070.01416.50
8.2.170.0110.00422.96
8.2.160.0070.00718.71
8.2.150.0040.01124.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00020.88
8.2.110.0060.00319.21
8.2.100.0100.00017.78
8.2.90.0040.00417.50
8.2.80.0000.00918.73
8.2.70.0040.00417.63
8.2.60.0050.00317.78
8.2.50.0000.00918.07
8.2.40.0000.00919.88
8.2.30.0050.00317.57
8.2.20.0000.00817.66
8.2.10.0030.00617.65
8.2.00.0040.00717.81
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.46
8.1.230.0040.00721.03
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0080.00017.23
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0050.00318.83
8.1.160.0000.00719.01
8.1.150.0030.00518.54
8.1.140.0070.00017.35
8.1.130.0000.00717.38
8.1.120.0000.00717.42
8.1.110.0040.00417.41
8.1.100.0040.00417.38
8.1.90.0000.00717.31
8.1.80.0000.00717.28
8.1.70.0000.00717.35
8.1.60.0080.00017.57
8.1.50.0030.00617.38
8.1.40.0030.00517.50
8.1.30.0050.00517.51
8.1.20.0040.00417.51
8.1.10.0040.00417.60
8.1.00.0030.00617.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00318.48
8.0.270.0000.00717.27
8.0.260.0000.00616.82
8.0.250.0070.00016.91
8.0.240.0000.00816.94
8.0.230.0030.00316.82
8.0.220.0030.00316.82
8.0.210.0030.00316.80
8.0.200.0000.00716.91
8.0.190.0070.00016.79
8.0.180.0110.00016.74
8.0.170.0040.00416.69
8.0.160.0070.00016.81
8.0.150.0040.00416.66
8.0.140.0070.00016.74
8.0.130.0030.00313.30
8.0.120.0060.00316.71
8.0.110.0040.00416.73
8.0.100.0040.00416.84
8.0.90.0030.00516.72
8.0.80.0070.01416.79
8.0.70.0000.00716.83
8.0.60.0050.00216.77
8.0.50.0040.00416.61
8.0.30.0030.01017.12
8.0.20.0030.01617.21
8.0.10.0080.00016.75
8.0.00.0100.00716.68
7.4.330.0020.00212.93
7.4.320.0080.00016.52
7.4.300.0030.00316.52
7.4.290.0000.00716.57
7.4.280.0040.00416.50
7.4.270.0030.00316.52
7.4.260.0000.00713.29
7.4.250.0040.00416.40
7.4.240.0030.00316.53
7.4.230.0030.00616.51
7.4.220.0060.01616.64
7.4.210.0030.01216.53
7.4.200.0000.00716.57
7.4.190.0000.00716.41
7.4.160.0060.01016.39
7.4.150.0070.02016.35
7.4.140.0090.00916.64
7.4.130.0120.00916.50
7.4.120.0140.00316.54
7.4.110.0060.01616.59
7.4.100.0100.01016.40
7.4.90.0030.01516.34
7.4.80.0030.01719.39
7.4.70.0070.01016.24
7.4.60.0060.01016.46
7.4.50.0040.00016.52
7.4.40.0130.00016.50
7.4.30.0040.01416.66
7.4.00.0000.01314.96
7.3.330.0030.00313.21
7.3.320.0070.00013.09
7.3.310.0000.00716.29
7.3.300.0000.00716.14
7.3.290.0060.00816.23
7.3.280.0040.01216.28
7.3.270.0130.00316.30
7.3.260.0060.01816.25
7.3.250.0080.01216.39
7.3.240.0160.00316.48
7.3.230.0090.00916.44
7.3.210.0110.00916.50
7.3.200.0140.00716.12
7.3.190.0090.00916.18
7.3.180.0090.00916.43
7.3.170.0070.01016.50
7.3.160.0150.00616.36
7.3.120.0000.01314.73
7.3.10.0120.00016.63
7.3.00.0070.00316.27
7.2.330.0060.01216.85
7.2.320.0060.01216.37
7.2.310.0100.01316.41
7.2.300.0000.01616.64
7.2.290.0100.01016.52
7.2.130.0100.00616.69
7.2.120.0000.01416.93
7.2.110.0030.01016.95
7.2.100.0040.00717.00
7.2.90.0120.00316.97
7.2.80.0070.00716.79
7.2.70.0030.01016.60
7.2.60.0040.00816.86
7.2.50.0070.00716.97
7.2.40.0030.00616.73
7.2.30.0030.01016.77
7.2.20.0100.00317.06
7.2.10.0070.00716.82
7.2.00.0070.00518.05
7.1.250.0030.00615.59
7.1.200.0030.00915.79
7.1.100.0250.00917.04
7.1.70.0030.00617.17
7.1.60.0060.01219.30
7.1.50.0110.01116.63
7.1.00.0030.08022.48
7.0.200.0000.00816.68
7.0.140.0000.04722.00
7.0.120.0030.07722.02
7.0.60.0130.04720.00
7.0.50.0070.03717.86
7.0.40.0130.07720.16
7.0.30.0230.08320.12
7.0.20.0400.04720.12
7.0.10.0100.08320.12
7.0.00.0130.04020.20
5.6.280.0000.07721.04
5.6.210.0070.07720.48
5.6.200.0170.07718.22
5.6.190.0070.04320.46
5.6.180.0230.06320.67
5.6.170.0470.08020.54
5.6.160.0000.04720.48
5.6.150.0070.03718.12
5.6.140.0100.05718.14
5.6.130.0070.03718.15
5.6.120.0000.06321.15
5.6.110.0100.06721.07
5.6.100.0070.03720.96
5.6.90.0070.06020.95
5.6.80.0070.06020.39
5.6.70.4700.03320.50
5.5.350.0230.08020.32
5.5.340.0130.06317.94
5.5.330.0130.07020.29
5.5.320.0130.04320.27
5.5.310.0200.06320.28
5.5.300.0070.07717.98
5.5.290.0070.08318.04
5.5.280.0100.06320.82
5.5.270.0100.08320.83
5.5.260.0100.03720.89
5.5.250.0100.03720.55
5.5.240.0200.05320.16
5.4.450.0100.04719.18
5.4.440.0030.06019.50
5.4.430.0170.07019.19
5.4.420.0100.06319.46
5.4.410.0130.06719.34
5.4.400.0130.05018.88
5.4.390.0100.03318.98
5.4.380.0030.03719.14
5.4.370.0000.08019.15
5.4.360.0100.06718.92
5.4.350.0070.06319.00
5.4.340.0070.06019.15
5.4.320.0000.04318.94
5.4.310.0030.05019.24
5.4.300.0030.03718.84
5.4.290.0130.05719.24
5.4.280.0100.04719.14
5.4.270.0070.07018.87
5.4.260.0130.06319.14
5.4.250.0070.07019.08
5.4.240.0070.05019.13
5.4.230.0030.07318.97
5.4.220.0130.03719.27
5.4.210.0030.04719.15
5.4.200.0170.03718.86
5.4.190.0100.06719.13
5.4.180.0030.04719.12
5.4.170.0070.03319.14
5.4.160.0070.08018.83
5.4.150.0030.05019.12
5.4.140.0070.05016.43
5.4.130.0100.05716.54
5.4.120.0030.05316.37
5.4.110.0100.05016.48
5.4.100.0100.07316.48
5.4.90.0000.07316.61
5.4.80.0070.03316.70
5.4.70.0070.04016.45
5.4.60.0000.03716.43
5.4.50.0000.03716.53
5.4.40.0070.03716.42
5.4.30.0170.02716.44
5.4.20.0030.03316.25
5.4.10.0070.03016.25
5.4.00.0000.03715.82
5.3.290.0070.07714.68
5.3.280.0000.06314.64
5.3.270.0000.05314.65
5.3.260.0000.08014.61
5.3.250.0100.07014.65
5.3.240.0030.04314.68
5.3.230.0030.03714.63
5.3.220.0100.04714.59
5.3.210.0000.07314.48
5.3.200.0070.03714.58
5.3.190.0070.06314.49
5.3.180.0070.07714.64
5.3.170.0000.04714.48
5.3.160.0130.02714.47
5.3.150.0070.04014.56
5.3.140.0000.04014.58
5.3.130.0030.03714.58
5.3.120.0030.03714.62
5.3.110.0000.04014.56
5.3.100.0070.03314.12
5.3.90.0070.05314.17
5.3.80.0070.03013.93
5.3.70.0100.03714.07
5.3.60.0030.03714.00
5.3.50.0000.04013.89
5.3.40.0000.03713.98
5.3.30.0100.04013.80
5.3.20.0030.03313.85
5.3.10.0070.03713.63
5.3.00.0030.03313.64
5.2.170.0000.03011.20
5.2.160.0030.02711.18
5.2.150.0030.02711.07
5.2.140.0000.03011.20
5.2.130.0000.03011.15
5.2.120.0000.03011.19
5.2.110.0070.06011.16
5.2.100.0100.05311.11
5.2.90.0030.02711.06
5.2.80.0030.02711.14
5.2.70.0030.03311.11
5.2.60.0000.03011.10
5.2.50.0000.03711.07
5.2.40.0000.03010.96
5.2.30.0000.03010.86
5.2.20.0000.03310.97
5.2.10.0030.02711.01
5.2.00.0000.03010.71
5.1.60.0000.02310.15
5.1.50.0000.0279.95
5.1.40.0000.02310.02
5.1.30.0000.02710.48
5.1.20.0030.02710.33
5.1.10.0030.02310.07
5.1.00.0030.03010.17
5.0.50.0000.0278.45
5.0.40.0070.0138.46
5.0.30.0030.0278.38
5.0.20.0000.0238.11
5.0.10.0030.0238.08
5.0.00.0030.0608.23
4.4.90.0000.0137.72
4.4.80.0030.0137.72
4.4.70.0000.0207.72
4.4.60.0030.0137.72
4.4.50.0030.0137.72
4.4.40.0100.0137.72
4.4.30.0000.0177.72
4.4.20.0070.0107.72
4.4.10.0000.0177.72
4.4.00.0000.0277.72
4.3.110.0000.0137.72
4.3.100.0000.0207.72
4.3.90.0030.0137.72
4.3.80.0130.0407.72
4.3.70.0070.0277.72
4.3.60.0000.0237.72
4.3.50.0000.0207.72
4.3.40.0030.0407.72
4.3.30.0030.0337.72
4.3.20.0030.0237.72
4.3.10.0000.0237.72
4.3.00.0070.0177.72

preferences:
74.72 ms | 401 KiB | 5 Q