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('foo')); } 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.0110.00716.50
8.3.50.0090.01022.02
8.3.40.0060.00918.48
8.3.30.0150.00618.71
8.3.20.0000.00720.28
8.3.10.0040.00423.49
8.3.00.0000.00819.01
8.2.180.0110.01416.75
8.2.170.0100.00722.96
8.2.160.0070.01020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00617.38
8.2.120.0040.00426.35
8.2.110.0060.00322.31
8.2.100.0080.00417.80
8.2.90.0030.00519.22
8.2.80.0040.00417.97
8.2.70.0050.00317.49
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0070.00019.38
8.2.30.0040.00420.63
8.2.20.0050.00317.61
8.2.10.0000.00817.98
8.2.00.0040.00418.04
8.1.280.0140.00425.92
8.1.270.0030.00523.96
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00622.39
8.1.230.0040.00717.66
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0030.00518.84
8.1.160.0040.00421.86
8.1.150.0000.00718.70
8.1.140.0080.00019.51
8.1.130.0040.00417.59
8.1.120.0000.00817.29
8.1.110.0040.00417.41
8.1.100.0000.00817.30
8.1.90.0030.00317.38
8.1.80.0000.00717.43
8.1.70.0070.00017.34
8.1.60.0050.00317.62
8.1.50.0060.00317.52
8.1.40.0050.00317.55
8.1.30.0060.00617.55
8.1.20.0080.00017.57
8.1.10.0040.00417.59
8.1.00.0000.00717.40
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0040.00418.30
8.0.270.0030.00317.20
8.0.260.0000.00617.19
8.0.250.0020.00516.94
8.0.240.0060.00016.91
8.0.230.0070.00016.96
8.0.220.0040.00416.79
8.0.210.0050.00316.88
8.0.200.0030.00316.80
8.0.190.0000.00716.96
8.0.180.0040.00416.91
8.0.170.0040.00416.91
8.0.160.0000.00716.98
8.0.150.0020.00516.70
8.0.140.0030.00316.83
8.0.130.0000.00513.36
8.0.120.0050.00216.84
8.0.110.0050.00216.95
8.0.100.0040.00416.99
8.0.90.0000.00817.00
8.0.80.0070.00716.82
8.0.70.0020.00516.71
8.0.60.0000.00816.93
8.0.50.0040.00416.87
8.0.30.0070.01117.06
8.0.20.0200.01217.40
8.0.10.0070.00016.97
8.0.00.0100.00716.77
7.4.330.0020.00216.86
7.4.320.0000.00616.36
7.4.300.0000.00616.64
7.4.290.0050.00216.45
7.4.280.0000.00816.49
7.4.270.0070.00016.41
7.4.260.0040.00416.57
7.4.250.0000.00816.55
7.4.240.0020.00616.63
7.4.230.0000.00716.50
7.4.220.0180.00016.52
7.4.210.0110.00316.37
7.4.200.0030.00316.62
7.4.160.0130.00316.38
7.4.150.0000.02017.40
7.4.140.0100.01117.86
7.4.130.0060.01216.47
7.4.120.0110.00616.46
7.4.110.0120.00616.47
7.4.100.0100.00716.46
7.4.90.0070.01016.52
7.4.80.0030.01419.39
7.4.70.0100.00716.30
7.4.60.0030.01616.33
7.4.50.0070.00716.48
7.4.40.0060.00916.32
7.4.30.0100.00716.32
7.4.00.0070.01014.77
7.3.330.0050.00213.06
7.3.320.0030.00313.21
7.3.310.0050.00216.27
7.3.300.0070.00016.07
7.3.290.0070.00916.17
7.3.280.0060.00816.22
7.3.270.0090.00917.40
7.3.260.0100.00716.38
7.3.250.0070.01416.17
7.3.240.0120.00816.12
7.3.230.0040.01316.39
7.3.210.0110.00716.09
7.3.200.0110.00616.45
7.3.190.0070.01316.47
7.3.180.0040.01716.35
7.3.170.0150.00616.27
7.3.160.0090.00616.59
7.2.330.0140.00316.45
7.2.320.0370.02616.37
7.2.310.0080.00816.55
7.2.300.0060.01016.68
7.2.290.0090.00916.45
7.2.60.0090.00616.84
7.2.00.0060.00919.37
7.1.200.0000.01215.77
7.1.100.0160.01116.21
7.1.70.0100.00617.09
7.1.60.0100.01319.36
7.1.50.0070.00316.83
7.1.00.0100.07022.29
7.0.200.0030.00716.73
7.0.60.0070.08319.89
7.0.50.0030.04017.83
7.0.40.0170.07020.09
7.0.30.0200.05320.09
7.0.20.0330.06020.23
7.0.10.0070.04320.30
7.0.00.0100.07020.34
5.6.280.0030.03320.86
5.6.210.0070.06020.47
5.6.200.0030.08718.19
5.6.190.0030.04020.33
5.6.180.0370.06020.57
5.6.170.0230.07320.46
5.6.160.0070.03720.44
5.6.150.0130.07318.18
5.6.140.0170.07318.14
5.6.130.0030.04318.14
5.6.120.0170.07320.97
5.6.110.0030.04720.98
5.6.100.0100.07021.04
5.6.90.0030.06320.97
5.6.80.0130.06720.46
5.5.350.3900.03720.39
5.5.340.0130.05717.97
5.5.330.0100.05720.27
5.5.320.0030.04720.38
5.5.310.0170.04320.30
5.5.300.0070.07717.95
5.5.290.0070.04017.97
5.5.280.0070.05020.73
5.5.270.0130.07720.87
5.5.260.0100.08320.86
5.5.250.0030.06320.70
5.5.240.0400.05720.23

preferences:
38.46 ms | 401 KiB | 5 Q