3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(bool $arg) { return $arg; } } $foo = new Foo(); try { var_dump($foo->bar(fopen('php://memory', 'r'))); } 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.0140.00018.47
8.3.50.0070.01117.93
8.3.40.0130.00718.67
8.3.30.0040.01518.80
8.3.20.0070.00020.33
8.3.10.0050.00223.60
8.3.00.0040.00419.50
8.2.180.0090.00616.50
8.2.170.0140.00322.96
8.2.160.0030.01020.56
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0060.00319.49
8.2.120.0000.00826.35
8.2.110.0050.00520.29
8.2.100.0080.00418.04
8.2.90.0080.00018.92
8.2.80.0030.00617.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0000.00819.41
8.2.30.0070.00020.52
8.2.20.0050.00317.83
8.2.10.0000.00818.04
8.2.00.0040.00418.00
8.1.270.0040.00423.91
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00322.41
8.1.230.0070.00417.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00818.59
8.1.160.0040.00421.91
8.1.150.0040.00418.80
8.1.140.0080.00019.54
8.1.130.0000.00717.57
8.1.120.0110.00017.47
8.1.110.0050.00217.41
8.1.100.0000.00717.38
8.1.90.0070.00017.43
8.1.80.0000.00717.36
8.1.70.0000.00717.43
8.1.60.0080.00017.64
8.1.50.0040.00417.50
8.1.40.0030.00517.55
8.1.30.0090.00017.66
8.1.20.0080.00017.59
8.1.10.0000.00817.55
8.1.00.0040.00417.46
8.0.300.0080.00018.77
8.0.290.0040.00316.88
8.0.280.0000.00718.55
8.0.270.0050.00217.33
8.0.260.0060.00017.33
8.0.250.0000.00717.05
8.0.240.0060.00017.06
8.0.230.0050.00217.02
8.0.220.0050.00217.02
8.0.210.0000.00617.05
8.0.200.0040.00416.98
8.0.190.0070.00017.07
8.0.180.0040.00416.86
8.0.170.0040.00417.09
8.0.160.0070.00017.10
8.0.150.0000.00817.03
8.0.140.0030.00317.04
8.0.130.0030.00613.47
8.0.120.0030.00517.02
8.0.110.0070.00017.00
8.0.100.0040.00417.02
8.0.90.0040.00417.05
8.0.80.0120.00317.01
8.0.70.0000.00816.83
8.0.60.0000.00716.96
8.0.50.0070.00016.95
8.0.30.0100.00817.31
8.0.20.0090.01117.42
8.0.10.0040.00417.04
8.0.00.0100.00716.83
7.4.330.0000.00516.66
7.4.320.0070.00016.46
7.4.300.0030.00316.39
7.4.290.0050.00316.51
7.4.280.0040.00416.59
7.4.270.0030.00316.59
7.4.260.0030.00316.53
7.4.250.0040.00416.59
7.4.240.0070.00116.43
7.4.230.0030.00316.70
7.4.220.0070.01116.59
7.4.210.0140.00016.68
7.4.200.0000.00816.71
7.4.160.0080.00816.54
7.4.150.0070.01017.40
7.4.140.0150.00917.86
7.4.130.0090.00916.49
7.4.120.0120.00516.57
7.4.110.0140.00716.45
7.4.100.0070.01116.55
7.4.90.0120.00616.46
7.4.80.0060.01019.39
7.4.70.0150.00316.46
7.4.60.0070.01016.58
7.4.50.0030.01016.62
7.4.40.0080.00816.45
7.4.30.0120.00616.49
7.4.00.0040.01114.94
7.3.330.0070.00013.21
7.3.320.0030.00313.44
7.3.310.0000.00716.30
7.3.300.0030.00316.38
7.3.290.0090.00816.42
7.3.280.0080.00916.45
7.3.270.0200.00317.40
7.3.260.0130.00316.50
7.3.250.0130.00416.35
7.3.240.0140.00516.51
7.3.230.0130.00316.41
7.3.210.0090.00616.61
7.3.200.0090.00616.50
7.3.190.0100.00716.42
7.3.180.0080.00816.50
7.3.170.0100.00616.45
7.3.160.0130.00316.48
7.2.330.0100.00716.48
7.2.320.0170.00316.86
7.2.310.0040.01516.59
7.2.300.0100.00716.53
7.2.290.0090.00616.83
7.2.60.0060.00616.96
7.2.00.0030.01419.50
7.1.200.0060.00615.81
7.1.100.0070.00717.72
7.1.70.0080.00817.19
7.1.60.0060.01819.36
7.1.50.0080.00316.46
7.1.00.0100.07022.30
7.0.200.0030.00716.55
7.0.60.0130.08319.97
7.0.50.0000.04317.96
7.0.40.0000.05020.15
7.0.30.0170.04020.06
7.0.20.0400.04020.16
7.0.10.0070.08320.07
7.0.00.0070.08720.17
5.6.280.0000.05721.08
5.6.210.0200.05020.57
5.6.200.0100.06718.12
5.6.190.0030.05020.50
5.6.180.0470.07720.45
5.6.170.0200.04020.44
5.6.160.0030.04020.46
5.6.150.0030.05718.24
5.6.140.0100.03718.12
5.6.130.0030.06318.28
5.6.120.0070.05321.02
5.6.110.0000.09721.02
5.6.100.0130.08321.00
5.6.90.0100.08021.10
5.6.80.0030.07720.38
5.5.350.4100.04320.38
5.5.340.0000.07017.92
5.5.330.0030.04720.31
5.5.320.0070.08020.34
5.5.310.0230.04020.26
5.5.300.0100.06317.99
5.5.290.0170.04018.09
5.5.280.0100.03720.77
5.5.270.0030.04720.87
5.5.260.0000.08720.84
5.5.250.0070.08720.55
5.5.240.0300.05320.37

preferences:
68.16 ms | 400 KiB | 5 Q