3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function f($c) { $c->m(); return $c; } } class B { public function g($c) { $ret=A::f($c); if($ret===false) { echo "Should never print this\n"; } } } class C { public function m() { } } $b = new B(); $b->g(new C());

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.0110.00418.17
8.3.40.0150.00018.68
8.3.30.0150.00618.96
8.3.20.0040.00420.16
8.3.10.0040.00423.66
8.3.00.0050.00320.63
8.2.180.0180.00418.25
8.2.170.0120.00322.96
8.2.160.0120.00320.52
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00919.26
8.2.110.0100.00722.25
8.2.100.0080.00417.78
8.2.90.0000.00719.08
8.2.80.0030.00617.97
8.2.70.0070.00317.38
8.2.60.0040.00717.91
8.2.50.0030.00618.07
8.2.40.0030.00619.88
8.2.30.0040.00418.30
8.2.20.0000.00817.68
8.2.10.0020.00517.98
8.2.00.0040.00417.62
8.1.270.0060.00322.24
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0090.00017.22
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0050.00318.59
8.1.160.0040.00421.94
8.1.150.0050.00218.42
8.1.140.0080.00017.44
8.1.130.0030.00319.66
8.1.120.0030.00417.31
8.1.110.0030.00517.39
8.1.100.0040.00417.41
8.1.90.0000.00717.30
8.1.80.0070.00017.43
8.1.70.0000.00817.35
8.1.60.0060.00317.54
8.1.50.0030.00617.46
8.1.40.0000.00917.50
8.1.30.0060.00317.67
8.1.20.0000.00717.58
8.1.10.0040.00417.52
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.47
8.0.270.0070.00017.20
8.0.260.0000.00817.18
8.0.250.0030.00316.81
8.0.240.0050.00216.92
8.0.230.0000.00816.93
8.0.220.0040.00416.71
8.0.210.0070.00016.89
8.0.200.0000.00616.87
8.0.190.0030.00316.79
8.0.180.0000.00716.75
8.0.170.0040.00416.88
8.0.160.0080.00016.88
8.0.150.0050.00216.79
8.0.140.0020.00516.77
8.0.130.0030.00313.30
8.0.120.0080.00016.80
8.0.110.0070.00016.75
8.0.100.0000.00716.86
8.0.90.0000.00916.79
8.0.80.0100.00716.82
8.0.70.0000.00716.84
8.0.60.0000.00716.71
8.0.50.0000.00716.68
8.0.30.0130.00517.12
8.0.20.0070.01217.40
8.0.10.0000.00817.07
8.0.00.0160.00516.94
7.4.330.0000.00515.03
7.4.320.0030.00316.61
7.4.300.0030.00316.58
7.4.290.0030.00616.64
7.4.280.0030.00316.59
7.4.270.0030.00316.43
7.4.260.0030.00316.50
7.4.250.0000.00716.42
7.4.240.0040.00316.52
7.4.230.0000.00716.71
7.4.220.0100.01016.37
7.4.210.0070.00716.61
7.4.200.0030.00316.67
7.4.160.0100.00516.48
7.4.150.0100.00717.40
7.4.140.0040.01317.86
7.4.130.0110.00816.44
7.4.120.0110.00616.49
7.4.110.0030.01316.63
7.4.100.0100.01016.60
7.4.90.0040.01316.39
7.4.80.0030.01419.39
7.4.70.0150.00616.50
7.4.60.0170.00016.45
7.4.50.0000.00516.37
7.4.40.0060.00916.41
7.4.30.0040.01216.36
7.4.00.0030.01214.80
7.3.330.0030.00313.08
7.3.320.0030.00313.27
7.3.310.0040.00416.27
7.3.300.0000.00716.16
7.3.290.0130.00616.31
7.3.280.0090.00916.30
7.3.270.0090.01017.40
7.3.260.0110.00916.29
7.3.250.0120.01116.29
7.3.240.0060.01816.27
7.3.230.0110.00616.39
7.3.210.0150.00716.21
7.3.200.0090.00619.39
7.3.190.0040.01516.32
7.3.180.0090.00716.39
7.3.170.0060.00916.46
7.3.160.0130.00316.46
7.3.120.0140.00015.04
7.3.10.0110.00016.43
7.3.00.0060.00916.52
7.2.330.0060.01216.54
7.2.320.0030.01316.64
7.2.310.0120.00416.55
7.2.300.0140.01016.35
7.2.290.0100.01316.55
7.2.130.0070.00416.99
7.2.120.0100.00617.04
7.2.110.0030.00916.59
7.2.100.0080.00316.79
7.2.90.0100.00317.04
7.2.80.0130.00016.95
7.2.70.0040.00716.88
7.2.60.0020.01116.79
7.2.50.0060.00917.01
7.2.40.0000.01217.11
7.2.30.0110.00416.75
7.2.20.0100.00316.58
7.2.10.0110.00316.41
7.2.00.0060.00616.80
7.1.250.0000.01215.86
7.1.200.0040.01115.70
7.1.70.0030.00917.14
7.1.60.0030.02219.70
7.1.50.0060.00916.79
7.1.00.0030.07322.45
7.0.200.0040.00416.87
7.0.140.0030.07322.15
7.0.60.0030.04019.86
7.0.50.0000.04717.84
7.0.40.0070.08720.14
7.0.30.0170.04320.10
7.0.20.0270.08320.25
7.0.10.0070.09020.33
7.0.00.0130.08020.22
5.6.280.0070.07021.10
5.6.210.0130.07720.65
5.6.200.0000.05318.19
5.6.190.0000.05720.33
5.6.180.0300.04720.47
5.6.170.0230.06720.39
5.6.160.0070.03720.44
5.6.150.0030.08018.25
5.6.140.0030.05718.28
5.6.130.0130.03018.15
5.6.120.0130.08021.01
5.6.110.0130.07021.05
5.6.100.0000.04321.13
5.6.90.0170.07020.88
5.6.80.0030.06320.42
5.5.350.4270.03720.39
5.5.340.0100.07717.94
5.5.330.0030.04320.47
5.5.320.0300.08020.29
5.5.310.0400.07720.37
5.5.300.0070.03717.98
5.5.290.0100.08017.93
5.5.280.0030.05020.97
5.5.270.0000.07320.88
5.5.260.0130.07720.80
5.5.250.0070.06320.47
5.5.240.0070.07720.16
5.4.450.0000.04319.48
5.4.440.0030.04019.16
5.4.430.0070.07319.56
5.4.420.0070.04319.39
5.4.410.0000.04019.07
5.4.400.0130.02719.12
5.4.390.0030.05319.26
5.4.380.0100.03019.24
5.4.370.0030.03719.00
5.4.360.0000.04019.12
5.4.350.0130.02719.25
5.4.340.0000.05019.12
5.4.320.0000.04019.08
5.4.310.0100.03319.28
5.4.300.0130.02719.24
5.4.290.0030.03718.84
5.4.280.0030.04319.14
5.4.270.0030.04318.88
5.4.260.0070.04019.12
5.4.250.0030.06719.14
5.4.240.0070.07019.15
5.4.230.0200.06019.20
5.4.220.0100.05318.84
5.4.210.0030.08019.14
5.4.200.0030.08019.14
5.4.190.0070.07718.99
5.4.180.0070.06018.99
5.4.170.0170.07019.25
5.4.160.0070.07318.96
5.4.150.0000.04319.14
5.4.140.0170.06316.35
5.4.130.0200.05316.40
5.4.120.0100.07016.31
5.4.110.0030.08016.70
5.4.100.0030.07016.52
5.4.90.0030.04016.48
5.4.80.0030.06316.48
5.4.70.0100.07016.71
5.4.60.0070.07716.28
5.4.50.0170.04716.63
5.4.40.0100.03316.40
5.4.30.0130.06316.36
5.4.20.0100.05716.38
5.4.10.0070.07016.52
5.4.00.0100.05715.82
5.3.290.0000.04014.69
5.3.280.0130.05014.63
5.3.270.0100.06314.64
5.3.260.0000.05714.67
5.3.250.0130.03314.62
5.3.240.0200.04714.64
5.3.230.0070.06314.63
5.3.220.0100.05314.49
5.3.210.0070.04314.60
5.3.200.0100.04014.45
5.3.190.0070.07314.61
5.3.180.0030.05314.56
5.3.170.0070.03714.73
5.3.160.0100.07314.57
5.3.150.0070.05314.73
5.3.140.0000.04714.59
5.3.130.0100.07014.58
5.3.120.0070.04714.70
5.3.110.0070.04014.59
5.3.100.0100.06714.07
5.3.90.0030.03713.95
5.3.80.0000.04014.03
5.3.70.0000.04314.02
5.3.60.0200.06014.02
5.3.50.0000.04314.01
5.3.40.0130.03014.01
5.3.30.0100.06713.96
5.3.20.0000.05013.71
5.3.10.0070.06713.71
5.3.00.0000.05013.57
5.2.170.0030.06011.17
5.2.160.0070.06311.23
5.2.150.0130.03011.23
5.2.140.0070.04711.15
5.2.130.0070.05711.15
5.2.120.0100.05011.16
5.2.110.0100.03011.00
5.2.100.0130.05011.10
5.2.90.0030.04311.27
5.2.80.0070.05710.99
5.2.70.0070.06311.11
5.2.60.0070.05711.05
5.2.50.0030.05310.98
5.2.40.0130.04711.05
5.2.30.0000.04710.99
5.2.20.0030.06311.11
5.2.10.0070.02711.02
5.2.00.0000.03010.77
5.1.60.0030.0309.98
5.1.50.0070.02010.04
5.1.40.0070.05010.05
5.1.30.0070.04310.38
5.1.20.0030.05310.51
5.1.10.0070.04710.08
5.1.00.0100.05010.13
5.0.50.0030.0409.18
5.0.40.0030.0279.18
5.0.30.0030.0309.18
5.0.20.0070.0239.18
5.0.10.0030.0209.18
5.0.00.0000.0339.18
4.4.90.0030.0179.18
4.4.80.0030.0339.18
4.4.70.0000.0379.18
4.4.60.0070.0209.18
4.4.50.0070.0209.18
4.4.40.0000.0309.18
4.4.30.0000.0209.18
4.4.20.0000.0209.18
4.4.10.0030.0179.18
4.4.00.0030.0339.18
4.3.110.0030.0279.18
4.3.100.0000.0179.18
4.3.90.0070.0239.18
4.3.80.0000.0279.18
4.3.70.0030.0139.18
4.3.60.0000.0339.18
4.3.50.0030.0239.18
4.3.40.0030.0509.18
4.3.30.0000.0339.18
4.3.20.0000.0339.18
4.3.10.0000.0379.18
4.3.00.0070.0279.18

preferences:
46.73 ms | 400 KiB | 5 Q