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.5.10.0100.00720.05
8.5.00.0130.00920.04
8.4.150.0030.00014.05
8.4.140.0120.00917.81
8.4.130.0110.00918.85
8.4.120.0090.01024.22
8.4.110.0060.00319.05
8.4.100.0120.00917.81
8.4.90.0060.00524.27
8.4.80.0100.00918.97
8.4.70.0140.00819.18
8.4.60.0120.00718.57
8.4.50.0120.00818.66
8.4.40.0090.00020.52
8.4.30.0070.01418.65
8.4.20.0130.00717.83
8.4.10.0060.00323.86
8.3.280.0120.00718.39
8.3.270.0100.01016.33
8.3.260.0080.00816.53
8.3.250.0130.00619.02
8.3.240.0120.00516.59
8.3.230.0100.01116.55
8.3.220.0070.00818.79
8.3.210.0080.01016.72
8.3.200.0050.00316.42
8.3.190.0070.00217.00
8.3.180.0050.01119.04
8.3.170.0120.00616.85
8.3.160.0110.00719.02
8.3.150.0060.00319.19
8.3.140.0060.01218.91
8.3.130.0050.00518.50
8.3.120.0060.00318.99
8.3.110.0060.00620.94
8.3.100.0120.00024.06
8.3.90.0030.01226.77
8.3.80.0090.00318.31
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.290.0120.01119.02
8.2.280.0130.00618.50
8.2.270.0120.00618.34
8.2.260.0050.00317.04
8.2.250.0040.01116.79
8.2.240.0080.00817.16
8.2.230.0060.00322.58
8.2.220.0040.00737.54
8.2.210.0050.00326.77
8.2.200.0030.00616.63
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.330.0130.00718.48
8.1.320.0100.00916.02
8.1.310.0090.00016.89
8.1.300.0030.00518.41
8.1.290.0000.00930.84
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:
48.51 ms | 403 KiB | 5 Q