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 $b, float $a) { 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.3.60.0110.00416.50
8.3.50.0090.00616.27
8.3.40.0130.00021.95
8.3.30.0040.01218.54
8.3.20.0040.00424.18
8.3.10.0100.00024.66
8.3.00.0040.00426.16
8.2.180.0090.01225.92
8.2.170.0120.00918.63
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0070.00019.79
8.2.110.0030.00920.37
8.2.100.0040.00820.56
8.1.280.0080.00625.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00318.33
8.1.230.0030.00620.20
7.4.120.0140.00916.39
7.4.110.0050.01416.47
7.4.100.0080.01016.35
7.4.90.0060.01516.34
7.4.80.0190.00616.20
7.4.70.0130.01016.09
7.4.60.0130.01216.34
7.4.50.0150.00816.15
7.4.40.0170.00416.15
7.4.30.0060.01316.32
7.4.20.0110.01216.38
7.4.10.0140.00816.44
7.4.00.0130.00916.15
7.3.240.0060.01416.20
7.3.230.0060.01316.15
7.3.220.0110.00916.25
7.3.210.0110.01016.23
7.3.200.0150.01016.25
7.3.190.0090.01116.00
7.3.180.0180.01116.29
7.3.170.0090.01716.11
7.3.160.0140.00716.30
7.3.150.0120.00516.08
7.3.140.0140.01116.28
7.3.130.0130.01416.25
7.3.120.0180.01016.27
7.3.110.0200.01016.32
7.3.100.0130.01016.18
7.3.90.0180.01016.08
7.3.80.0200.00816.30
7.3.70.0150.00916.21
7.3.60.0180.00916.22
7.3.50.0110.01516.21
7.3.40.0070.01616.20
7.3.30.0180.00816.18
7.3.20.0190.00816.24
7.3.10.0160.00916.20
7.3.00.0190.00716.15
7.2.340.0120.00716.18
7.2.330.0140.00616.29
7.2.320.0120.01316.38
7.2.310.0090.01516.21
7.2.300.0130.01016.04
7.2.290.0080.01616.23
7.2.280.0120.00916.14
7.2.270.0150.01016.39
7.2.260.0080.01316.14
7.2.250.0100.00916.36
7.2.240.0170.00816.30
7.2.230.0130.01116.41
7.2.220.0140.01116.44
7.2.210.0210.00916.44
7.2.200.0210.00816.18
7.2.190.0170.00716.34
7.2.180.0170.00516.32
7.2.170.0210.00916.31
7.2.160.0130.01316.15
7.2.150.0330.00716.49
7.2.140.0150.01016.17
7.2.130.0130.01416.38
7.2.120.0200.00716.41
7.2.110.0150.00716.30
7.2.100.0110.01116.29
7.2.90.0160.01016.30
7.2.80.0150.01116.31
7.2.70.0180.01116.31
7.2.60.0310.00816.35
7.2.50.0100.01216.40
7.2.40.0240.00416.34
7.2.30.0200.01316.27
7.2.20.0160.00816.30
7.2.10.0150.01116.28
7.2.00.0180.00816.33

preferences:
41.66 ms | 400 KiB | 5 Q