3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WithCast { public function __construct(bool $bool) { } } var_dump((new ReflectionClass(WithCast::class))->newInstanceArgs(['no a bool'])); class WithoutCast { public function __construct(float $float) { } } var_dump((new ReflectionClass(WithoutCast::class))->newInstanceArgs(['no a float']));

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.70.0040.01516.50
8.3.60.0120.00618.55
8.3.50.0110.00718.39
8.3.40.0120.00821.71
8.3.30.0110.00418.71
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.190.0190.00316.58
8.2.180.0130.00916.50
8.2.170.0090.00618.96
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00021.00
8.2.110.0030.00620.96
8.2.100.0060.00617.72
8.2.90.0060.00318.09
8.2.80.0080.00018.22
8.2.70.0000.00917.63
8.2.60.0040.00417.63
8.2.50.0150.00418.10
8.2.40.0160.00018.10
8.2.30.0140.00318.10
8.2.20.0110.00518.10
8.2.10.0180.00018.10
8.2.00.0110.00518.10
8.1.280.0150.00625.92
8.1.270.0100.00024.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.81
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0130.00318.10
8.1.170.0120.00418.10
8.1.160.0120.00518.10
8.1.150.0080.00818.10
8.1.140.0120.00418.10
8.1.130.0060.01218.10
8.1.120.0150.00418.10
8.1.110.0180.00018.10
8.1.100.0110.00618.10
8.1.90.0100.00518.10
8.1.80.0140.00318.10
8.1.70.0160.00018.10
8.1.60.0170.00018.10
8.1.50.0190.00018.10
8.1.40.0120.00618.10
8.1.30.0110.00618.10
8.1.20.0090.00918.10
8.1.10.0180.00018.10
8.1.00.0120.00618.10
8.0.300.0070.00019.90
8.0.290.0000.00716.63
8.0.280.0110.00518.10
8.0.270.0130.00418.10
8.0.260.0120.00618.10
8.0.250.0120.00418.10
8.0.240.0140.00318.10
8.0.230.0120.00418.10
8.0.220.0100.00818.10
8.0.210.0110.00518.10
8.0.200.0160.00018.10
8.0.190.0110.00718.10
8.0.180.0170.00018.10
8.0.170.0110.00518.10
8.0.160.0210.00018.10
8.0.150.0160.00018.10
8.0.140.0090.00718.10
8.0.130.0120.00318.10
8.0.120.0130.00518.10
8.0.110.0130.00318.10
8.0.100.0160.00018.10
8.0.90.0170.00018.10
8.0.80.0090.00718.10
8.0.70.0170.00018.10
8.0.60.0160.00018.10
8.0.50.0140.00218.10
8.0.30.0170.00018.10
8.0.20.0100.00518.10
8.0.10.0120.00418.10

preferences:
17.18 ms | 404 KiB | 6 Q