3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function xx(int $a, float $b) { print_r(func_get_args()); } } class B extends A { public function xx(int $rename, float $b) { parent::xx(...func_get_args()); } } $a = new A(); $a->xx(1, 2); $a->xx(a: 1, b: 2); $b = new B(); $b->xx(1, 2); $b->xx(a: 1, b: 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.4.120.0070.01023.95
8.4.110.0120.00920.44
8.4.100.0120.00918.96
8.4.90.0090.01122.08
8.4.80.0060.00618.85
8.4.70.0080.00718.93
8.4.60.0120.00720.62
8.4.50.0120.00919.54
8.4.40.0070.01017.98
8.4.30.0110.00820.68
8.4.20.0070.01418.03
8.4.10.0040.00419.68
8.3.250.0120.00718.91
8.3.240.0040.00517.03
8.3.230.0110.00816.54
8.3.220.0100.00819.16
8.3.210.0130.00616.74
8.3.200.0060.00316.78
8.3.190.0110.00518.68
8.3.180.0120.00616.66
8.3.170.0060.01216.53
8.3.160.0140.00418.36
8.3.150.0160.00316.51
8.3.140.0110.00716.70
8.3.130.0050.00316.85
8.3.120.0030.00518.95
8.3.110.0090.00620.94
8.3.100.0040.01224.06
8.3.90.0040.00426.77
8.3.80.0090.00316.88
8.3.70.0110.00716.58
8.3.60.0180.00416.63
8.3.50.0120.00823.57
8.3.40.0100.01021.67
8.3.30.0090.00618.84
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0030.00626.16
8.2.290.0120.00620.27
8.2.280.0090.00720.24
8.2.270.0120.00318.50
8.2.260.0070.01117.04
8.2.250.0040.00416.54
8.2.240.0060.00317.00
8.2.230.0070.00322.58
8.2.220.0030.01237.54
8.2.210.0060.00926.77
8.2.200.0110.00016.75
8.2.190.0100.01016.58
8.2.180.0160.00325.92
8.2.170.0130.00719.03
8.2.160.0100.00722.96
8.2.150.0050.00325.66
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0120.00319.36
8.2.110.0040.00720.53
8.2.100.0090.00019.00
8.1.330.0100.01021.69
8.1.320.0150.00716.35
8.1.310.0090.00916.73
8.1.300.0040.01217.86
8.1.290.0030.00618.88
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00018.63
8.1.230.0060.00318.58
7.4.110.0090.01516.22
7.4.100.0100.00716.07
7.4.90.0130.00316.23
7.4.80.0060.01816.23
7.4.70.0120.00916.56
7.4.60.0030.01316.27
7.4.50.0070.01016.34
7.4.40.0090.00916.32
7.4.30.0090.00916.54
7.4.20.0070.01416.19
7.4.10.0090.00616.32
7.4.00.0100.01016.46
7.3.230.0130.00316.13
7.3.220.0060.01016.38
7.3.210.0090.01116.10
7.3.200.0090.00916.27
7.3.190.0130.01016.08
7.3.180.0150.00316.07
7.3.170.0130.00316.26
7.3.160.0030.01416.30
7.3.150.0070.01016.28
7.3.140.0120.00416.16
7.3.130.0090.00916.18
7.3.120.0060.01016.35
7.3.110.0110.00516.11
7.3.100.0080.01116.24
7.3.90.0130.00316.16
7.3.80.0110.00516.31
7.3.70.0060.01216.11
7.3.60.0120.01216.11
7.3.50.0100.01016.28
7.3.40.0140.00316.24
7.3.30.0150.00816.04
7.3.20.0120.00416.23
7.3.10.0110.00716.19
7.3.00.0040.01216.18
7.2.340.0090.00916.60
7.2.330.0130.00616.05
7.2.320.0140.00416.43
7.2.310.0070.01016.30
7.2.300.0070.01116.37
7.2.290.0060.01216.15
7.2.280.0140.00516.07
7.2.270.0070.01016.15
7.2.260.0120.00616.24
7.2.250.0210.00616.49
7.2.240.0030.01616.39
7.2.230.0070.01016.29
7.2.220.0130.00316.29
7.2.210.0170.00016.45
7.2.200.0060.01216.29
7.2.190.0110.00816.38
7.2.180.0080.01116.17
7.2.170.0120.00616.10
7.2.160.0130.00716.48
7.2.150.0070.01016.35
7.2.140.0120.00616.31
7.2.130.0030.01416.42
7.2.120.0090.00916.36
7.2.110.0060.01316.32
7.2.100.0070.01116.43
7.2.90.0170.00316.24
7.2.80.0160.00516.31
7.2.70.0090.00916.46
7.2.60.0080.01116.27
7.2.50.0120.01216.40
7.2.40.0140.00416.13
7.2.30.0120.00616.35
7.2.20.0190.00616.36
7.2.10.0190.00016.42
7.2.00.0090.00916.41

preferences:
26.23 ms | 403 KiB | 5 Q