3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Http\Promise; interface Promise { public function then(callable $onFulfilled = null, ?callable $onRejected = null); } foreach ((new \ReflectionMethod(Promise::class, 'then'))->getParameters() as $p) { var_dump((string) $p); $t = $p->getType(); var_dump($t->getName()); var_dump($t->allowsNull()); var_dump((string) $t); echo "\n\n"; }

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.0100.01024.23
8.4.110.0030.00518.70
8.4.100.0160.00617.75
8.4.90.0120.00917.89
8.4.80.0100.01017.95
8.4.70.0050.00319.75
8.4.60.0120.01019.46
8.4.50.0070.00518.48
8.4.40.0050.00317.96
8.4.30.0070.01318.52
8.4.20.0100.01019.88
8.4.10.0030.00619.39
8.3.250.0080.01118.55
8.3.240.0130.00616.38
8.3.230.0140.00616.68
8.3.220.0080.00716.39
8.3.210.0080.01016.44
8.3.200.0080.01216.38
8.3.190.0100.00917.20
8.3.180.0090.01118.58
8.3.170.0160.00320.68
8.3.160.0120.00617.11
8.3.150.0120.00617.14
8.3.140.0030.00520.96
8.3.130.0030.00616.48
8.3.120.0100.00719.05
8.3.110.0080.00420.94
8.3.100.0030.00716.50
8.3.90.0110.00426.77
8.3.80.0060.00316.50
8.3.70.0110.01116.63
8.3.60.0040.01118.25
8.3.50.0040.01116.80
8.3.40.0060.00921.84
8.3.30.0070.01020.70
8.3.20.0000.01423.67
8.3.10.0080.00823.64
8.3.00.0120.00320.70
8.2.290.0090.00518.50
8.2.280.0110.00816.80
8.2.270.0070.00717.10
8.2.260.0110.00718.53
8.2.250.0040.00718.35
8.2.240.0090.00018.73
8.2.230.0030.00622.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0090.00016.75
8.2.190.0040.01116.63
8.2.180.0100.01016.88
8.2.170.0080.00820.52
8.2.160.0150.00021.67
8.2.150.0150.00020.92
8.2.140.0070.00722.29
8.2.130.0150.00022.26
8.2.120.0080.00820.99
8.2.110.0150.00020.96
8.2.100.0080.00820.88
8.2.90.0120.00320.50
8.2.80.0140.00019.35
8.2.70.0060.01018.55
8.2.60.0060.00920.33
8.2.50.0090.00620.66
8.2.40.0150.00018.87
8.2.30.0090.00618.68
8.2.20.0040.01118.61
8.2.10.0060.01018.66
8.2.00.0040.01120.45
8.1.330.0100.01016.93
8.1.320.0130.00616.02
8.1.310.0070.01018.39
8.1.300.0090.00018.02
8.1.290.0080.00430.84
8.1.280.0110.00425.92
8.1.270.0090.00623.83
8.1.260.0070.00723.89
8.1.250.0140.00023.84
8.1.240.0070.01020.27
8.1.230.0090.00920.34
8.1.220.0120.00620.37
8.1.210.0060.00620.34
8.1.200.0030.01220.58
8.1.190.0070.00720.36
8.1.180.0120.00620.07
8.1.170.0040.01420.52
8.1.160.0150.00320.18
8.1.150.0040.01120.49
8.1.140.0080.00820.64
8.1.130.0110.00418.54
8.1.120.0110.00418.44
8.1.110.0130.00318.46
8.1.100.0000.01419.69
8.1.90.0150.00018.67
8.1.80.0150.00019.73
8.1.70.0110.00418.87
8.1.60.0150.00018.66
8.1.50.0130.00318.53
8.1.40.0060.01018.68
8.1.30.0120.00318.61
8.1.20.0120.00319.79
8.1.10.0100.00718.70
8.1.00.0080.00818.47

preferences:
55.37 ms | 403 KiB | 5 Q