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(1)); } 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.00416.75
8.3.50.0120.00422.05
8.3.40.0110.00418.84
8.3.30.0040.01118.59
8.3.20.0000.00820.35
8.3.10.0080.00023.53
8.3.00.0030.00519.25
8.2.180.0100.00718.29
8.2.170.0170.00022.96
8.2.160.0090.00620.57
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00019.00
8.2.120.0000.00826.35
8.2.110.0120.00420.38
8.2.100.0060.00617.91
8.2.90.0050.00319.09
8.2.80.0030.00617.97
8.2.70.0050.00317.38
8.2.60.0030.00517.80
8.2.50.0050.00318.07
8.2.40.0070.00019.15
8.2.30.0040.00420.54
8.2.20.0030.00617.72
8.2.10.0020.00517.95
8.2.00.0000.00718.06
8.1.280.0120.00925.92
8.1.270.0030.00623.67
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0030.00622.42
8.1.230.0040.00817.64
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.11
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0080.00018.78
8.1.160.0000.00721.96
8.1.150.0000.00718.79
8.1.140.0030.00619.58
8.1.130.0000.00817.52
8.1.120.0080.00317.25
8.1.110.0060.00317.46
8.1.100.0000.00817.40
8.1.90.0000.00717.43
8.1.80.0000.00817.38
8.1.70.0000.00717.31
8.1.60.0030.00617.51
8.1.50.0080.00017.53
8.1.40.0060.00617.53
8.1.30.0040.00717.59
8.1.20.0040.00417.47
8.1.10.0000.00717.59
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.29
8.0.270.0000.00717.11
8.0.260.0000.00617.07
8.0.250.0000.00716.95
8.0.240.0030.00316.93
8.0.230.0030.00317.00
8.0.220.0000.00716.84
8.0.210.0060.00316.86
8.0.200.0030.00316.94
8.0.190.0000.00716.89
8.0.180.0040.00416.83
8.0.170.0000.00816.87
8.0.160.0030.00316.87
8.0.150.0040.00416.70
8.0.140.0030.00316.84
8.0.130.0060.00313.29
8.0.120.0000.00816.74
8.0.110.0000.00716.96
8.0.100.0000.00716.88
8.0.90.0030.00316.76
8.0.80.0120.00816.93
8.0.70.0070.00016.78
8.0.60.0040.00416.91
8.0.50.0000.00716.84
8.0.30.0080.00916.90
8.0.20.0070.01217.40
8.0.10.0000.00717.08
8.0.00.0070.01016.79
7.4.330.0030.00316.76
7.4.320.0030.00316.54
7.4.300.0030.00316.63
7.4.290.0000.00716.43
7.4.280.0080.00016.59
7.4.270.0000.00716.65
7.4.260.0030.00516.61
7.4.250.0040.00416.48
7.4.240.0050.00216.57
7.4.230.0030.00316.49
7.4.220.0090.00916.49
7.4.210.0070.00816.61
7.4.200.0030.00516.70
7.4.160.0080.00816.29
7.4.150.0060.01217.40
7.4.140.0160.00517.86
7.4.130.0100.01016.53
7.4.120.0110.00516.36
7.4.110.0160.00616.43
7.4.100.0070.01016.37
7.4.90.0100.00716.50
7.4.80.0090.00919.39
7.4.70.0070.01716.60
7.4.60.0160.00016.36
7.4.50.0100.00616.48
7.4.40.0100.00716.41
7.4.30.0150.00716.27
7.4.00.0070.01015.12
7.3.330.0030.00313.19
7.3.320.0030.00413.19
7.3.310.0080.00016.06
7.3.300.0000.00616.26
7.3.290.0080.00716.21
7.3.280.0050.01016.24
7.3.270.0140.00717.40
7.3.260.0070.01016.48
7.3.250.0110.00916.28
7.3.240.0110.00716.44
7.3.230.0070.01116.39
7.3.210.0140.00316.25
7.3.200.0030.01216.42
7.3.190.0030.01416.22
7.3.180.0080.00816.52
7.3.170.0070.01016.45
7.3.160.0080.00816.58
7.2.330.0090.00916.55
7.2.320.0090.00916.41
7.2.310.0130.00316.68
7.2.300.0070.01616.50
7.2.290.0080.00816.59
7.2.60.0050.00516.85
7.2.00.0030.00919.33
7.1.200.0060.00915.64
7.1.100.0390.01118.22
7.1.70.0090.00516.80
7.1.60.0100.01319.36
7.1.50.0000.01316.75
7.1.00.0000.08022.33
7.0.200.0030.00516.38
7.0.60.0070.06720.07
7.0.50.0030.04017.73
7.0.40.0130.03320.30
7.0.30.0270.04020.06
7.0.20.0300.05320.33
7.0.10.0030.05020.05
7.0.00.0200.05720.20
5.6.280.0070.05321.10
5.6.210.0130.06720.69
5.6.200.0070.08018.27
5.6.190.0000.04720.50
5.6.180.0370.04020.48
5.6.170.0130.04720.55
5.6.160.0070.07720.57
5.6.150.0100.04718.18
5.6.140.0130.07718.23
5.6.130.0070.05318.18
5.6.120.0200.07320.97
5.6.110.0000.05021.11
5.6.100.0030.08320.88
5.6.90.0130.08021.10
5.6.80.0100.07020.29
5.5.350.2870.03020.44
5.5.340.0070.07717.99
5.5.330.0070.06720.35
5.5.320.0170.07720.35
5.5.310.0170.05020.31
5.5.300.0070.05317.95
5.5.290.0000.08717.92
5.5.280.0270.02720.84
5.5.270.0070.08320.64
5.5.260.0130.06320.61
5.5.250.0130.05720.57
5.5.240.0200.04020.24

preferences:
52.04 ms | 401 KiB | 5 Q