3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class parentCl { protected function parentMethod($arg) { echo "parent call $arg", PHP_EOL; } } class childCl extends parentCl { public function __construct() { echo "construct", PHP_EOL; } protected function childMethod($params) { echo "child call", PHP_EOL; } protected function childMethod2($params) { echo "child call2", PHP_EOL; } public function __call($name, $args) { call_user_func([$this, $name], ...$args); call_user_func([$this, 'parentMethod'], ...$args); } } //like this case, $n = new childCl(); $n->childMethod(123); $n->childMethod2(1234);

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.5.10.0080.00820.27
8.5.00.0130.01020.03
8.4.150.0020.00014.05
8.4.140.0110.01017.45
8.4.130.0110.00917.46
8.4.120.0140.00623.99
8.4.110.0130.00718.75
8.4.100.0100.01117.86
8.4.90.0090.01217.63
8.4.80.0140.00617.76
8.4.70.0040.00517.79
8.4.60.0100.01020.30
8.4.50.0120.01017.93
8.4.40.0120.00319.45
8.4.30.0070.01317.68
8.4.20.0140.00718.61
8.4.10.0080.00019.75
8.3.280.0110.01118.14
8.3.270.0120.00816.60
8.3.260.0150.00516.27
8.3.250.0040.00518.80
8.3.240.0100.00916.54
8.3.230.0040.00416.66
8.3.220.0050.00316.92
8.3.210.0100.00616.70
8.3.200.0100.00916.48
8.3.190.0110.01017.14
8.3.180.0140.00416.44
8.3.170.0120.00616.67
8.3.160.0060.01217.13
8.3.150.0100.01017.23
8.3.140.0140.00316.71
8.3.130.0060.00316.84
8.3.120.0080.00020.60
8.3.110.0090.00020.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0030.01316.38
8.3.60.0110.00416.38
8.3.50.0150.00421.91
8.3.40.0130.00618.71
8.3.30.0110.00418.75
8.3.20.0080.00019.14
8.3.10.0040.00421.85
8.3.00.0040.00419.38
8.2.290.0160.00320.25
8.2.280.0050.00618.24
8.2.270.0070.01117.43
8.2.260.0100.00618.45
8.2.250.0070.00416.71
8.2.240.0040.00417.02
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0060.00318.32
8.2.190.0040.01116.75
8.2.180.0100.01016.75
8.2.170.0090.00622.96
8.2.160.0170.00022.31
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00820.99
8.2.110.0060.00322.27
8.2.100.0120.00317.72
8.2.90.0030.00619.17
8.2.80.0090.00017.97
8.2.70.0030.00517.92
8.2.60.0090.00018.05
8.2.50.0040.00718.10
8.2.40.0000.00819.12
8.2.30.0040.00419.43
8.2.20.0040.00418.11
8.2.10.0040.00418.13
8.2.00.0040.00417.61
8.1.330.0110.00816.63
8.1.320.0120.00818.65
8.1.310.0070.00718.41
8.1.300.0150.00316.63
8.1.290.0090.00018.88
8.1.280.0140.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.96
8.1.230.0090.00617.68
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.48
8.1.190.0050.00317.25
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0040.00418.88
8.1.150.0000.00718.82
8.1.140.0040.00419.54
8.1.130.0040.00418.93
8.1.120.0020.00517.47
8.1.110.0070.00017.39
8.1.100.0070.00017.54
8.1.90.0040.00417.46
8.1.80.0070.00017.35
8.1.70.0030.00317.48
8.1.60.0000.00817.47
8.1.50.0000.00817.39
8.1.40.0040.00417.55
8.1.30.0070.00017.66
8.1.20.0000.00817.49
8.1.10.0000.00817.63
8.1.00.0000.00817.51
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0030.00317.29
8.0.260.0000.00617.18
8.0.250.0000.00717.03
8.0.240.0000.00716.98
8.0.230.0030.00616.97
8.0.220.0040.00416.96
8.0.210.0030.00316.89
8.0.200.0030.00316.82
8.0.190.0050.00316.84
8.0.180.0040.00416.96
8.0.170.0000.00716.94
8.0.160.0050.00216.92
8.0.150.0040.00316.84
8.0.140.0070.00016.89
8.0.130.0000.00513.29
8.0.120.0000.00716.87
8.0.110.0050.00216.91
8.0.100.0020.00516.72
8.0.90.0050.00216.94
8.0.80.0100.00616.88
8.0.70.0040.00416.84
8.0.60.0070.00016.96
8.0.50.0040.00416.93
8.0.30.0100.00817.11
8.0.20.0150.00417.40
8.0.10.0000.00716.96
8.0.00.0180.00016.63
7.4.330.0060.00015.55
7.4.320.0000.00716.52
7.4.300.0000.00616.47
7.4.290.0050.00316.52
7.4.280.0040.00416.51
7.4.270.0030.00316.50
7.4.260.0000.00716.51
7.4.250.0000.00816.50
7.4.240.0040.00416.58
7.4.230.0030.00316.61
7.4.220.0100.00716.67
7.4.210.0060.00916.48
7.4.200.0000.00716.71
7.4.160.0090.00716.45
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0100.00816.49
7.4.120.0110.00616.54
7.4.110.0100.01316.66
7.4.100.0140.00516.38
7.4.90.0130.01116.52
7.4.80.0090.00919.39
7.4.70.0030.01316.48
7.4.60.0000.02216.50
7.4.50.0030.01316.76
7.4.40.0080.01316.38
7.4.30.0030.01316.41
7.4.00.0070.01014.82
7.3.330.0050.00013.16
7.3.320.0000.00513.31
7.3.310.0040.00416.20
7.3.300.0070.00016.36
7.3.290.0080.00916.34
7.3.280.0080.01016.33
7.3.270.0110.00817.40
7.3.260.0110.00716.36
7.3.250.0070.01116.27
7.3.240.0080.00916.36
7.3.230.0170.00016.37
7.3.210.0130.00316.38
7.3.200.0030.01316.27
7.3.190.0140.00316.54
7.3.180.0110.00616.52
7.3.170.0120.00916.33
7.3.160.0150.00616.50
7.2.330.0030.01416.54
7.2.320.0040.01816.82
7.2.310.0070.01016.75
7.2.300.0090.01516.40
7.2.290.0140.00716.74
7.1.200.0030.00515.72
7.1.70.0110.00017.10
7.1.60.0000.01317.05
7.1.00.0030.06322.45
7.0.200.0100.01416.73
7.0.140.0070.05721.98
7.0.130.0030.06321.92
7.0.120.0070.07022.11
7.0.110.0130.07322.05
7.0.100.0100.06022.17
7.0.90.0070.06322.03
7.0.80.0130.05322.18
7.0.70.0170.05022.19
7.0.60.0130.05022.10
7.0.50.0070.06722.05
7.0.40.0130.05022.04
7.0.30.0000.07322.01
7.0.20.0130.05322.13
7.0.10.0100.05721.98
7.0.00.0170.07021.96
5.6.290.0130.04720.85
5.6.280.0200.06020.82
5.6.270.0000.08020.96
5.6.260.0170.05321.08
5.6.250.0100.05721.12
5.6.240.0170.05320.86
5.6.230.0130.05720.89
5.6.220.0170.05020.91
5.6.210.0130.06020.97
5.6.200.0070.06020.87
5.6.190.0100.06320.86
5.6.180.0200.07020.89
5.6.170.0170.05320.86
5.6.160.0130.07320.86
5.6.150.0130.06020.92
5.6.140.0030.06021.00
5.6.130.0100.05020.74
5.6.120.0000.06320.88
5.6.110.0000.06021.02
5.6.100.0070.05721.04
5.6.90.0100.05020.98
5.6.80.0070.07320.24
5.6.70.0230.05320.41
5.6.60.0100.05320.46
5.6.50.0070.05720.27
5.6.40.0070.05320.45
5.6.30.0100.05320.24
5.6.20.0100.05320.22
5.6.10.0030.05720.24
5.6.00.0100.05320.22

preferences:
174.25 ms | 403 KiB | 5 Q