3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B {} class C {} class D {} class Z { public function __construct( protected A $a, protected C|B $c, protected D|C $d, ) { if ($this->c instanceof B) { trigger_error('A, B, C, D is deprecated, pass A, C, D instead', E_USER_DEPRECATED); $this->c = $this->d; $this->d = func_get_arg(3); } var_dump($this->a); var_dump($this->c); var_dump($this->d); } } new Z(new A(), new B(), new C(), new D()); new Z(new A(), new C(), new D());

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.20.0190.00317.92
8.4.10.0040.00422.13
8.3.150.0050.00316.72
8.3.140.0000.00916.60
8.3.130.0060.00318.59
8.3.120.0070.00318.60
8.3.110.0110.00420.94
8.3.100.0000.00924.06
8.3.90.0050.00326.77
8.3.80.0060.00318.56
8.3.70.0040.01818.43
8.3.60.0120.00618.64
8.3.50.0140.00416.89
8.3.40.0040.01122.04
8.3.30.0120.00419.08
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.260.0070.01017.27
8.2.250.0060.00317.21
8.2.240.0030.00717.07
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0070.00726.77
8.2.200.0030.00616.75
8.2.190.0120.00318.54
8.2.180.0040.01517.00
8.2.170.0090.00618.98
8.2.160.0040.01122.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0030.00619.31
8.2.100.0080.00417.78
8.2.90.0310.00617.50
8.2.80.0260.00717.49
8.2.70.0230.00317.25
8.2.60.0210.00917.34
8.2.50.0170.00717.13
8.2.40.0170.00817.09
8.2.30.0100.01317.38
8.2.20.0230.00016.88
8.2.10.0230.00017.10
8.2.00.0220.00017.09
8.1.310.0080.00016.82
8.1.300.0040.00418.19
8.1.290.0070.00430.84
8.1.280.0120.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00722.42
8.1.230.0110.00022.15
8.1.220.0140.01017.00
8.1.210.0170.00916.88
8.1.200.0180.00416.80
8.1.190.0210.00417.00
8.1.180.0240.00016.80
8.1.170.0200.00516.80
8.1.160.0240.00016.97
8.1.150.0190.00316.80
8.1.140.0140.00717.00
8.1.130.0180.00316.97
8.1.120.0150.00717.25
8.1.110.0230.00016.88
8.1.100.0120.00917.47
8.1.90.0200.00316.80
8.1.80.0100.01017.11
8.1.70.0100.01017.23
8.1.60.0130.01017.38
8.1.50.0190.00317.11
8.1.40.0210.00017.25
8.1.30.0210.00317.38
8.1.20.0150.00817.00
8.1.10.0180.00717.25
8.1.00.0240.00316.80
8.0.300.0210.00416.80
8.0.290.0240.00016.80
8.0.280.0220.00216.80
8.0.270.0230.00316.80
8.0.260.0190.00816.80
8.0.250.0190.00416.80
8.0.240.0170.00716.80
8.0.230.0190.00316.80
8.0.220.0190.00316.80
8.0.210.0210.00316.80
8.0.200.0160.00816.80
8.0.190.0170.00716.80
8.0.180.0160.01016.80
8.0.170.0180.00316.80
8.0.160.0150.00516.80
8.0.150.0110.01116.80
8.0.140.0220.00016.80
8.0.130.0170.00616.80
8.0.120.0180.00416.80
8.0.110.0200.00016.80
8.0.100.0210.00716.80
8.0.90.0210.00316.80
8.0.80.0220.00316.80
8.0.70.0140.00716.80
8.0.60.0170.01016.80
8.0.50.0230.00516.80
8.0.30.0180.00516.80
8.0.20.0160.01016.80
8.0.10.0220.00616.80

preferences:
57.93 ms | 403 KiB | 5 Q