3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { var_dump(debug_backtrace()); } class A { public function test() { $func = function() { call_user_func('self::callTarget'); }; $func(); } public static function callTarget() { echo 'hello'; } } class B extends A {} $a = new B; $a->test();

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.0150.00016.63
8.3.50.0120.00917.50
8.3.40.0090.00618.84
8.3.30.0110.00418.87
8.3.20.0120.00318.77
8.3.10.0060.00320.48
8.3.00.0000.00819.25
8.2.180.0100.01016.88
8.2.170.0070.00722.96
8.2.160.0100.00721.06
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.22
8.2.110.0070.00420.99
8.2.100.0070.00417.91
8.2.90.0050.00519.17
8.2.80.0000.00819.21
8.2.70.0040.00417.50
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0000.00818.10
8.2.20.0030.00619.38
8.2.10.0000.00717.56
8.2.00.0070.00417.59
8.1.280.0120.00325.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.61
8.1.230.0090.00320.88
8.1.220.0040.00417.74
8.1.210.0000.00818.88
8.1.200.0030.00717.36
8.1.190.0000.00817.30
8.1.180.0000.00818.10
8.1.170.0000.00818.75
8.1.160.0050.00218.76
8.1.150.0000.00818.69
8.1.140.0070.00017.31
8.1.130.0030.00317.75
8.1.120.0000.00717.48
8.1.110.0080.00017.35
8.1.100.0040.00417.34
8.1.90.0070.00017.48
8.1.80.0070.00017.35
8.1.70.0030.00517.42
8.1.60.0080.00017.55
8.1.50.0000.00717.46
8.1.40.0030.00517.44
8.1.30.0050.00317.63
8.1.20.0040.00417.63
8.1.10.0050.00217.46
8.1.00.0000.00717.59
8.0.300.0040.00420.03
8.0.290.0060.00316.63
8.0.280.0000.00818.48
8.0.270.0000.00717.25
8.0.260.0000.00716.84
8.0.250.0000.00816.86
8.0.240.0000.00716.81
8.0.230.0000.00716.79
8.0.220.0000.00716.83
8.0.210.0000.00716.85
8.0.200.0070.00016.95
8.0.190.0050.00216.85
8.0.180.0000.00816.77
8.0.170.0050.00316.93
8.0.160.0030.00316.96
8.0.150.0040.00416.83
8.0.140.0080.00016.73
8.0.130.0000.00513.32
8.0.120.0070.00016.93
8.0.110.0000.00716.81
8.0.100.0000.00716.88
8.0.90.0050.00316.77
8.0.80.0120.00316.83
8.0.70.0000.00716.93
8.0.60.0040.00416.88
8.0.50.0030.00516.91
8.0.30.0050.01417.21
8.0.20.0080.01017.08
8.0.10.0080.00017.05
8.0.00.0120.00616.92
7.4.330.0020.00212.91
7.4.320.0000.00616.60
7.4.300.0030.00316.52
7.4.290.0000.00716.58
7.4.280.0050.00316.64
7.4.270.0040.00416.65
7.4.260.0060.00013.26
7.4.250.0030.00716.50
7.4.240.0000.00716.55
7.4.230.0000.00716.59
7.4.220.0040.01416.67
7.4.210.0030.01316.63
7.4.200.0000.00716.70
7.4.190.0000.00716.42
7.4.160.0060.00916.50
7.4.150.0140.00316.54
7.4.140.0120.00916.45
7.4.130.0100.00716.56
7.4.120.0080.00916.39
7.4.110.0090.00616.50
7.4.100.0200.00316.46
7.4.90.0110.00616.58
7.4.80.0060.01219.39
7.4.70.0070.00916.34
7.4.60.0080.00816.48
7.4.50.0070.00716.55
7.4.40.0000.01416.58
7.4.30.0090.00916.63
7.4.00.0130.00015.09
7.3.330.0060.00013.12
7.3.320.0030.00313.31
7.3.310.0070.00016.18
7.3.300.0030.00316.16
7.3.290.0090.00616.31
7.3.280.0130.00716.31
7.3.270.0100.01016.62
7.3.260.0120.00616.52
7.3.250.0060.01316.29
7.3.240.0130.01016.50
7.3.230.0100.01016.30
7.3.210.0100.01016.37
7.3.200.0110.00516.26
7.3.190.0120.00916.21
7.3.180.0060.00916.37
7.3.170.0110.00716.52
7.3.160.0080.00816.44
7.3.120.0110.00314.45
7.3.10.0090.00616.27
7.3.00.0120.00416.52
7.2.330.0100.00716.62
7.2.320.0040.01516.63
7.2.310.0110.00616.79
7.2.300.0060.01016.66
7.2.290.0150.01116.44
7.2.130.0070.00716.83
7.2.120.0090.01316.80
7.2.110.0090.01516.41
7.2.100.0160.00716.62
7.2.90.0180.00816.62
7.2.80.0120.00916.47
7.2.70.0250.00316.63
7.2.60.0120.01216.91
7.2.50.0180.00716.47
7.2.40.0120.01216.47
7.2.30.0140.00716.82
7.2.20.0240.00416.73
7.2.10.0100.01316.22
7.2.00.0050.01018.15
7.1.250.0110.01015.39
7.1.100.0040.01118.19
7.1.70.0030.00716.75
7.1.60.0170.00719.40
7.1.50.0110.01116.80
7.1.00.0000.03722.45
7.0.200.0000.00716.65
7.0.140.0030.07322.12
7.0.120.0030.07322.01
7.0.60.0030.04319.82
7.0.50.0070.07717.88
7.0.40.0070.04020.23
7.0.30.0230.07020.21
7.0.20.0230.07720.33
7.0.10.0070.08720.15
7.0.00.0070.08320.10
5.6.280.0100.06320.82
5.6.210.0000.09320.48
5.6.200.0070.03718.16
5.6.190.0000.05020.50
5.6.180.0200.07720.47
5.6.170.0370.06720.71
5.6.160.0070.08320.56
5.6.150.0100.06718.22
5.6.140.0070.04018.22
5.6.130.0030.08318.21
5.6.120.0100.04721.01
5.6.110.0070.06721.13
5.6.100.0100.08321.12
5.6.90.0100.06021.06
5.6.80.0030.04320.55
5.5.350.0070.08320.36
5.5.340.0100.08017.96
5.5.330.0100.08720.13
5.5.320.0300.07320.51
5.5.310.0330.07020.34
5.5.300.0000.04018.03
5.5.290.0000.04017.98
5.5.280.0000.05720.88
5.5.270.0130.07720.77
5.5.260.0170.07320.77
5.5.250.0100.06320.79
5.5.240.0330.03020.03
5.4.450.0100.05019.42
5.4.440.0230.04719.21
5.4.430.0200.04319.42
5.4.420.0130.05019.48
5.4.410.0170.04019.18
5.4.400.0330.03719.08
5.4.390.0300.04018.99
5.4.380.0230.05019.09
5.4.370.0100.06019.09
5.4.360.0170.08319.16
5.4.350.0270.07018.86
5.4.340.0200.03719.18
5.4.320.0200.06318.85
5.4.310.0200.06718.85
5.4.300.0300.06319.20
5.4.290.0230.07018.97
5.4.280.0270.06019.08
5.4.270.0300.06319.22
5.4.260.0230.04019.14
5.4.250.0200.07019.23
5.4.240.0230.03319.18
5.4.230.0270.04719.14
5.4.220.0300.06719.07
5.4.210.0270.05719.05
5.4.200.0200.07318.86
5.4.190.0230.04719.29
5.4.180.0230.05018.85
5.4.170.0270.06319.18
5.4.160.0230.07318.82
5.4.150.0170.04019.22
5.4.140.0200.04016.41
5.4.130.0170.04716.70
5.4.120.0330.06016.46
5.4.110.0230.07016.45
5.4.100.0330.03316.38
5.4.90.0200.07016.39
5.4.80.0200.07016.44
5.4.70.0200.07016.59
5.4.60.0330.05316.38
5.4.50.0270.07016.34
5.4.40.0170.05316.42
5.4.30.0370.07316.42
5.4.20.0200.07016.38
5.4.10.0230.06016.23
5.4.00.0200.06315.73
5.3.290.0270.07014.64
5.3.280.0170.06714.57
5.3.270.0230.05014.60
5.3.260.0200.04314.52
5.3.250.0270.05314.54
5.3.240.0200.03314.69
5.3.230.0300.06314.72
5.3.220.0270.05014.73
5.3.210.0370.05714.58
5.3.200.0270.04314.58
5.3.190.0230.05014.65
5.3.180.0270.05014.56
5.3.170.0230.07714.47
5.3.160.0130.05314.55
5.3.150.0230.07714.72
5.3.140.0270.06714.58
5.3.130.0200.05314.55
5.3.120.0230.03714.63
5.3.110.0170.07314.52
5.3.100.0100.05314.03
5.3.90.0270.06714.07
5.3.80.0200.03313.95
5.3.70.0130.07014.00
5.3.60.0230.04314.16
5.3.50.0230.03314.02
5.3.40.0200.06313.95
5.3.30.0300.05714.07
5.3.20.0170.07013.61
5.3.10.0270.06713.57
5.3.00.0200.06313.55
5.2.170.0170.06711.65
5.2.160.0170.05311.65
5.2.150.0200.04711.65
5.2.140.0200.05311.65
5.2.130.0200.05311.65
5.2.120.0130.03711.65
5.2.110.0200.03711.65
5.2.100.0200.03311.65
5.2.90.0130.06311.65
5.2.80.0170.05711.65
5.2.70.0230.05011.65
5.2.60.0200.05711.65
5.2.50.0130.03011.65
5.2.40.0100.03011.65
5.2.30.0100.03311.65
5.2.20.0130.03011.65
5.2.10.0200.05311.65
5.2.00.0200.05011.65
5.1.60.0170.02311.65
5.1.50.0200.05311.65
5.1.40.0130.03011.65
5.1.30.0200.05311.65
5.1.20.0170.02311.65
5.1.10.0070.03011.65
5.1.00.0100.02711.65
5.0.50.0070.02011.65
5.0.40.0070.03011.65
5.0.30.0000.06011.65
5.0.20.0070.02011.65
5.0.10.0070.04011.65
5.0.00.0030.04011.65
4.4.90.0170.02711.65
4.4.80.0070.01711.65
4.4.70.0100.03011.65
4.4.60.0100.03011.65
4.4.50.0030.03311.65
4.4.40.0100.05011.65
4.4.30.0030.03311.65
4.4.20.0130.01311.65
4.4.10.0070.02011.65
4.4.00.0070.04311.65
4.3.110.0070.01711.65
4.3.100.0100.01311.65
4.3.90.0030.01711.65
4.3.80.0170.01711.65
4.3.70.0030.01711.65
4.3.60.0100.01311.65
4.3.50.0070.03711.65
4.3.40.0070.02311.65
4.3.30.0030.02011.65
4.3.20.0070.03011.65
4.3.10.0100.02011.65
4.3.00.0070.02311.65

preferences:
38.54 ms | 401 KiB | 5 Q