3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected function y() { echo 'Foo called' . PHP_EOL; var_dump( func_get_args()); } } class Bar extends Foo { public function __call($name, $args) { echo 'Bar called' . PHP_EOL; /** This works, but arg[0] is the name of the method called and [1] is the args call_user_func_array( 'parent::' . $name, $args ); */ forward_static_call( ['parent', $name], $args ); } } $bar = (new Bar)->y(4,2);

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.0100.00316.50
8.3.50.0110.01116.26
8.3.40.0100.00318.83
8.3.30.0110.00419.09
8.3.20.0000.00820.14
8.3.10.0040.00421.90
8.3.00.0040.00419.29
8.2.180.0070.01418.66
8.2.170.0060.00919.04
8.2.160.0130.00022.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00519.48
8.2.110.0000.01019.21
8.2.100.0110.00017.75
8.2.90.0060.00319.17
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0090.00017.93
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0040.00417.95
8.2.20.0040.00417.68
8.2.10.0040.00418.07
8.2.00.0000.00717.59
8.1.280.0100.00625.92
8.1.270.0060.00320.32
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.15
8.1.230.0070.00417.77
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0070.00018.10
8.1.170.0000.00820.48
8.1.160.0040.00421.89
8.1.150.0030.00718.85
8.1.140.0020.00517.40
8.1.130.0030.00317.80
8.1.120.0080.00017.47
8.1.110.0040.00417.31
8.1.100.0030.00517.45
8.1.90.0040.00417.36
8.1.80.0000.00717.30
8.1.70.0050.00317.52
8.1.60.0060.00617.49
8.1.50.0040.00417.52
8.1.40.0040.00417.51
8.1.30.0060.00317.58
8.1.20.0040.00417.50
8.1.10.0000.00917.52
8.1.00.0080.00017.48
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.50
8.0.270.0030.00317.30
8.0.260.0030.00617.30
8.0.250.0030.00316.99
8.0.240.0000.00716.84
8.0.230.0070.00016.98
8.0.220.0040.00416.85
8.0.210.0050.00316.77
8.0.200.0030.00316.99
8.0.190.0030.00517.01
8.0.180.0000.00716.75
8.0.170.0040.00416.92
8.0.160.0050.00316.90
8.0.150.0000.00716.86
8.0.140.0050.00516.78
8.0.130.0060.00013.28
8.0.120.0000.00716.84
8.0.110.0000.00716.82
8.0.100.0040.00416.94
8.0.90.0000.00716.80
8.0.80.0120.00916.84
8.0.70.0040.00416.89
8.0.60.0080.00016.93
8.0.50.0000.00716.78
8.0.30.0110.01317.13
8.0.20.0150.00817.40
8.0.10.0050.00217.03
8.0.00.0130.00516.75
7.4.330.0000.00615.03
7.4.320.0040.00416.48
7.4.300.0030.00316.57
7.4.290.0070.00316.52
7.4.280.0070.00016.38
7.4.270.0000.00616.60
7.4.260.0030.00316.46
7.4.250.0000.00716.48
7.4.240.0040.00316.53
7.4.230.0030.00316.60
7.4.220.0140.00416.42
7.4.210.0080.01016.58
7.4.200.0050.00216.40
7.4.160.0110.00516.66
7.4.150.0140.00417.40
7.4.140.0130.00617.86
7.4.130.0090.01116.53
7.4.120.0120.00616.58
7.4.110.0030.01716.51
7.4.100.0150.00716.38
7.4.90.0100.01316.66
7.4.80.0100.00719.39
7.4.70.0030.01416.55
7.4.60.0040.01216.43
7.4.50.0040.00416.41
7.4.40.0080.01516.61
7.4.30.0080.01116.57
7.4.00.0050.01014.96
7.3.330.0030.00313.13
7.3.320.0000.01513.13
7.3.310.0000.00916.33
7.3.300.0000.00716.34
7.3.290.0000.00716.32
7.3.280.0080.01116.26
7.3.270.0080.00817.40
7.3.260.0100.01816.49
7.3.250.0090.00916.45
7.3.240.0100.00716.35
7.3.230.0100.01016.57
7.3.210.0030.01416.25
7.3.200.0160.00016.50
7.3.190.0100.00616.32
7.3.180.0090.00916.36
7.3.170.0030.01316.27
7.3.160.0100.00816.34
7.3.120.0110.00614.77
7.3.110.0030.00914.92
7.3.100.0000.01815.02
7.3.90.0070.00714.77
7.3.80.0110.00314.76
7.3.70.0030.00914.66
7.3.60.0060.00914.96
7.3.50.0040.01114.91
7.3.40.0060.01014.92
7.3.30.0030.00614.79
7.3.20.0070.00716.71
7.3.10.0070.00716.81
7.3.00.0070.01016.59
7.2.330.0130.00416.72
7.2.320.0200.00316.63
7.2.310.0030.01316.54
7.2.300.0030.01316.65
7.2.290.0110.00916.37
7.2.250.0080.00815.27
7.2.240.0110.00714.87
7.2.230.0090.00615.30
7.2.220.0060.00315.22
7.2.210.0100.00715.36
7.2.200.0060.00314.94
7.2.190.0060.00914.96
7.2.180.0060.00915.23
7.2.170.0070.00314.81
7.2.00.0070.01019.63
7.1.330.0030.01015.85
7.1.320.0110.00015.71
7.1.310.0110.00315.82
7.1.300.0040.01115.75
7.1.290.0090.00615.77
7.1.280.0030.01315.84
7.1.270.0070.00315.70
7.1.260.0030.00915.91
7.1.100.0000.01218.13
7.1.70.0000.00716.74
7.1.60.0030.02019.50
7.1.50.0030.01817.02
7.1.00.0030.09722.46
7.0.200.0060.00615.02
7.0.140.0130.05322.21
7.0.60.0100.05019.79
7.0.50.0100.05017.90
7.0.40.0070.08720.13
7.0.30.0400.07720.34
7.0.20.0470.06020.23
7.0.10.0030.04320.23
7.0.00.0030.09020.10
5.6.280.0000.07721.03
5.6.210.0030.05020.48
5.6.200.0000.04718.29
5.6.190.0170.03720.77
5.6.180.3170.04020.52
5.6.170.0100.09720.71
5.6.160.0100.08020.47
5.6.150.0030.04318.18
5.6.140.0100.08018.28
5.6.130.0170.05318.11
5.6.120.0100.08320.99
5.6.110.0070.07320.96
5.6.100.0070.08321.00
5.6.90.0130.07321.02
5.6.80.0100.08720.38
5.6.70.4670.03320.41
5.5.350.0030.03320.43
5.5.340.0100.07317.94
5.5.330.0170.03320.27
5.5.320.0230.07320.27
5.5.310.0330.07320.32
5.5.300.0070.04018.05
5.5.290.0000.04318.06
5.5.280.0070.08320.77
5.5.270.0030.04320.96
5.5.260.0070.08320.98
5.5.250.0000.06720.63
5.5.240.0030.08320.22
5.4.450.0400.07019.36
5.4.440.0270.06319.33
5.4.430.0270.05019.46
5.4.420.0330.05319.54
5.4.410.0170.05719.00
5.4.400.0470.05018.81
5.4.390.0300.07018.79
5.4.380.0330.05718.59
5.4.370.0400.05718.84
5.4.360.0400.05318.75
5.4.350.0370.05718.77
5.4.340.0330.05018.78
5.4.320.0300.05318.79
5.4.310.0430.05018.61
5.4.300.0300.06318.47
5.4.290.0300.06318.52
5.4.280.0370.08018.76
5.4.270.0200.06018.79
5.4.260.0370.06018.76
5.4.250.0270.06318.69
5.4.240.0270.06018.74
5.4.230.0230.06018.46
5.4.220.0300.06018.55
5.4.210.0330.07018.79
5.4.200.0400.04716.51
5.4.190.0270.06018.68
5.4.180.0330.06318.71
5.4.170.0300.06018.82
5.4.160.0330.06318.74
5.4.150.0500.05018.61
5.4.140.0470.06316.46
5.4.130.0330.05316.27
5.4.120.0400.04716.21
5.4.110.0370.06316.23
5.4.100.0330.05316.30
5.4.90.0370.07016.19
5.4.80.0430.07016.34
5.4.70.0330.05716.14
5.4.60.0330.05016.28
5.4.50.0370.05016.23
5.4.40.0430.05016.15
5.4.30.0430.04316.34
5.4.20.0230.06316.18
5.4.10.0270.05316.16
5.4.00.0400.04715.60
5.3.290.0330.05314.67
5.3.280.0330.05014.82
5.3.270.0370.06014.63
5.3.260.0470.06014.63
5.3.250.0370.05714.59
5.3.240.0270.05714.73
5.3.230.0400.05314.73
5.3.220.0270.06014.68
5.3.210.0370.07314.68
5.3.200.0370.05314.79
5.3.190.0230.06314.79
5.3.180.0530.05314.61
5.3.170.0400.06714.73
5.3.160.0430.06314.67
5.3.150.0330.07714.63
5.3.140.0300.07314.60
5.3.130.0400.04314.78
5.3.120.0330.06314.55
5.3.110.0370.05714.77
5.3.100.0500.06314.07
5.3.90.2600.06014.01
5.3.80.0600.05714.19
5.3.70.0470.06314.13
5.3.60.0430.06314.05
5.3.50.0230.06014.00
5.3.40.0430.06313.99
5.3.30.0400.04314.01
5.3.20.0270.05713.80
5.3.10.0230.05713.68
5.3.00.0300.05713.64
5.2.170.0130.04011.25
5.2.160.0100.05311.25
5.2.150.0170.04711.18
5.2.140.0230.04311.13
5.2.130.0430.04311.09
5.2.120.0300.04011.21
5.2.110.0300.04011.14
5.2.100.0330.05011.09
5.2.90.0200.04311.31
5.2.80.0200.04711.09
5.2.70.0200.04711.17
5.2.60.0230.04311.18
5.2.50.0230.04011.05
5.2.40.0170.04311.20
5.2.30.0130.04711.20
5.2.20.0170.04310.99
5.2.10.0270.05010.89
5.2.00.0230.05710.83
5.1.60.0200.03310.21
5.1.50.0170.0379.98
5.1.40.0170.03310.10
5.1.30.0230.03710.41
5.1.20.0200.03710.41
5.1.10.0230.03310.11
5.1.00.0200.03710.12
5.0.50.0200.0338.55
5.0.40.0130.0338.60
5.0.30.0130.0438.25
5.0.20.0230.0178.24
5.0.10.0100.0378.31
5.0.00.0170.0508.37
4.4.90.0100.0236.00
4.4.80.0070.0375.95
4.4.70.0130.0205.88
4.4.60.0100.0235.88
4.4.50.0100.0235.90
4.4.40.0130.0335.90
4.4.30.0030.0305.92
4.4.20.0100.0235.93
4.4.10.0100.0335.97
4.4.00.0130.0405.91
4.3.110.0130.0205.81
4.3.100.0030.0275.89
4.3.90.0130.0205.80
4.3.80.0130.0335.80
4.3.70.0200.0275.87
4.3.60.0070.0275.82
4.3.50.0200.0235.82
4.3.40.0130.0305.73
4.3.30.0070.0234.56
4.3.20.0000.0274.55
4.3.10.0100.0204.52
4.3.00.0170.0176.88

preferences:
52.78 ms | 400 KiB | 5 Q