3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(float $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar('0xf4c3b00c')); } catch (Error $e) { echo '!!!' . $e->getMessage() . '!!!'; }

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.60.0120.00318.43
8.3.50.0100.00718.05
8.3.40.0100.01018.84
8.3.30.0140.00018.84
8.3.20.0040.00420.29
8.3.10.0040.00423.61
8.3.00.0050.00319.25
8.2.180.0110.00416.50
8.2.170.0060.01222.96
8.2.160.0100.00320.46
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0060.00319.48
8.2.120.0000.00826.35
8.2.110.0060.00320.34
8.2.100.0080.00317.80
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0070.00018.05
8.2.50.0040.00418.07
8.2.40.0060.00319.37
8.2.30.0000.00720.68
8.2.20.0040.00417.78
8.2.10.0060.00318.09
8.2.00.0040.00418.06
8.1.280.0170.00325.92
8.1.270.0150.00023.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00822.25
8.1.230.0060.00617.66
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0090.00018.68
8.1.160.0040.00421.92
8.1.150.0040.00418.76
8.1.140.0000.00819.45
8.1.130.0030.00317.59
8.1.120.0060.00317.45
8.1.110.0000.00717.51
8.1.100.0020.00517.49
8.1.90.0000.00717.35
8.1.80.0040.00417.41
8.1.70.0000.00717.47
8.1.60.0030.00517.55
8.1.50.0030.00517.47
8.1.40.0000.00717.45
8.1.30.0100.00417.50
8.1.20.0030.00717.62
8.1.10.0040.00417.57
8.1.00.0000.00817.39
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0000.00717.16
8.0.260.0030.00517.25
8.0.250.0060.00016.98
8.0.240.0080.00017.04
8.0.230.0000.00717.00
8.0.220.0070.00016.89
8.0.210.0090.00016.91
8.0.200.0000.00816.89
8.0.190.0000.00816.94
8.0.180.0000.00716.90
8.0.170.0040.00417.03
8.0.160.0050.00317.00
8.0.150.0000.00716.84
8.0.140.0000.00716.92
8.0.130.0060.00313.32
8.0.120.0050.00316.82
8.0.110.0000.00716.97
8.0.100.0040.00416.82
8.0.90.0040.00316.91
8.0.80.0130.00716.92
8.0.70.0040.00416.89
8.0.60.0000.00716.89
8.0.50.0050.00216.77
8.0.30.0080.01216.96
8.0.20.0120.00717.40
8.0.10.0000.00817.06
8.0.00.0060.01516.72
7.4.330.0000.00516.67
7.4.320.0030.00316.46
7.4.300.0060.00016.52
7.4.290.0030.00316.41
7.4.280.0030.00616.64
7.4.270.0030.00316.53
7.4.260.0030.00316.55
7.4.250.0040.00416.48
7.4.240.0000.00716.61
7.4.230.0070.00016.38
7.4.220.0150.00416.59
7.4.210.0110.00316.63
7.4.200.0060.00016.31
7.4.160.0040.01116.54
7.4.150.0130.00517.40
7.4.140.0080.01617.86
7.4.130.0140.00516.52
7.4.120.0120.00516.42
7.4.110.0120.00616.53
7.4.100.0110.00616.49
7.4.90.0080.00816.59
7.4.80.0130.00619.39
7.4.70.0030.01516.52
7.4.60.0090.00616.47
7.4.50.0070.00716.35
7.4.40.0130.00316.30
7.4.30.0090.01216.52
7.4.00.0060.01014.97
7.3.330.0050.00013.29
7.3.320.0000.00713.37
7.3.310.0030.00316.15
7.3.300.0070.00016.18
7.3.290.0070.00916.30
7.3.280.0100.00816.28
7.3.270.0000.01717.40
7.3.260.0120.00616.20
7.3.250.0090.00916.28
7.3.240.0070.01216.29
7.3.230.0110.00716.48
7.3.210.0090.00916.43
7.3.200.0070.00816.38
7.3.190.0030.01716.26
7.3.180.0040.01216.31
7.3.170.0100.00616.32
7.3.160.0100.00716.29
7.2.330.0070.01016.72
7.2.320.0030.01516.41
7.2.310.0030.01416.53
7.2.300.0070.01016.61
7.2.290.0100.00616.52
7.2.60.0070.00716.46
7.2.00.0030.01019.47
7.1.200.0030.01015.73
7.1.100.0230.01016.14
7.1.70.0100.00717.22
7.1.60.0100.01419.36
7.1.50.0060.00916.96
7.1.00.0070.07322.54
7.0.200.0070.00716.46
7.0.60.0070.08319.96
7.0.50.0030.04317.81
7.0.40.0030.07320.21
7.0.30.0270.03320.24
7.0.20.0330.06320.12
7.0.10.0000.07020.05
7.0.00.0030.06320.29
5.6.280.0000.03320.90
5.6.210.0170.06720.61
5.6.200.0100.07018.12
5.6.190.0030.04320.42
5.6.180.0500.07020.61
5.6.170.0230.03720.71
5.6.160.0000.04320.52
5.6.150.0030.06718.12
5.6.140.0100.07718.13
5.6.130.0130.04718.11
5.6.120.0030.04321.00
5.6.110.0000.05321.00
5.6.100.0130.06321.07
5.6.90.0030.08720.88
5.6.80.0070.06320.37
5.5.350.4200.04020.39
5.5.340.0030.04017.99
5.5.330.0100.06720.43
5.5.320.0030.04020.36
5.5.310.0230.04320.43
5.5.300.0070.06318.08
5.5.290.0030.05718.01
5.5.280.0100.06320.88
5.5.270.0000.05320.87
5.5.260.0100.08320.68
5.5.250.0070.05720.71
5.5.240.0230.05320.35

preferences:
37.28 ms | 400 KiB | 5 Q