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, protected ?D $unused = NULL, ) { if ($this->c instanceof B) { trigger_error('A, B, C, D is deprecated, pass A, C, D instead', E_USER_DEPRECATED); $this->c = $d; $this->d = $unused; } 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.3.130.0040.00418.41
8.3.120.0130.00318.83
8.3.110.0040.00720.94
8.3.100.0090.00024.06
8.3.90.0110.00726.77
8.3.80.0000.01017.97
8.3.70.0120.00318.43
8.3.60.0140.00718.68
8.3.50.0100.00716.75
8.3.40.0070.01021.86
8.3.30.0030.01219.09
8.3.20.0000.00824.18
8.3.10.0090.00924.66
8.3.00.0080.00026.16
8.2.250.0080.00018.52
8.2.240.0040.00418.86
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0120.00926.77
8.2.200.0090.00316.47
8.2.190.0040.01116.88
8.2.180.0150.00016.88
8.2.170.0040.01118.82
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.08
8.2.110.0190.00322.24
8.2.100.0070.00417.74
8.2.90.0290.00617.13
8.2.80.0190.01317.25
8.2.70.0300.00317.38
8.2.60.0270.00317.25
8.2.50.0230.00717.38
8.2.40.0210.00617.24
8.2.30.0240.00317.38
8.2.20.0160.01017.25
8.2.10.0240.00517.13
8.2.00.0290.00317.50
8.1.300.0070.01318.13
8.1.290.0090.00330.84
8.1.280.0140.00025.92
8.1.270.0040.00423.88
8.1.260.0030.01026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0040.00822.10
8.1.220.0250.00417.13
8.1.210.0230.00418.75
8.1.200.0250.00317.13
8.1.190.0240.00318.42
8.1.180.0210.00417.13
8.1.170.0190.01016.84
8.1.160.0150.01518.55
8.1.150.0210.00217.13
8.1.140.0180.00417.13
8.1.130.0240.00016.80
8.1.120.0130.01016.88
8.1.110.0160.00416.80
8.1.100.0160.00817.10
8.1.90.0160.00816.88
8.1.80.0220.00316.97
8.1.70.0200.00517.13
8.1.60.0170.00617.48
8.1.50.0160.00817.13
8.1.40.0180.00616.88
8.1.30.0160.00617.10
8.1.20.0090.01217.38
8.1.10.0200.00317.00
8.1.00.0120.00816.88
8.0.300.0120.01316.80
8.0.290.0190.00416.80
8.0.280.0200.00316.80
8.0.270.0050.01616.80
8.0.260.0160.00616.80
8.0.250.0110.01416.80
8.0.240.0180.00316.80
8.0.230.0220.00316.80
8.0.220.0190.00316.80
8.0.210.0190.00516.80
8.0.200.0130.00816.80
8.0.190.0160.00516.80
8.0.180.0190.00316.80
8.0.170.0120.01216.80
8.0.160.0170.00416.80
8.0.150.0220.00016.80
8.0.140.0160.00916.80
8.0.130.0200.00316.80
8.0.120.0200.00016.80
8.0.110.0140.00516.80
8.0.100.0190.00516.80
8.0.90.0160.00416.80
8.0.80.0240.00016.80
8.0.70.0200.00516.80
8.0.60.0180.00716.80
8.0.50.0140.00716.80
8.0.30.0180.00516.80
8.0.20.0190.00316.80
8.0.10.0170.00516.80

preferences:
25.83 ms | 403 KiB | 5 Q