3v4l.org

run code in 300+ PHP versions simultaneously
<?php function belette($x = null) { try { if ($x === null) { throw new \Exception('exception'); } return $x; } catch (\Exception $e) { return 'exception'; } finally { return 'finally'; } } var_dump(belette('furet')); var_dump(belette());

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.0040.01818.43
8.3.50.0140.00822.03
8.3.40.0120.00319.02
8.3.30.0070.00718.91
8.3.20.0050.00218.98
8.3.10.0000.00721.89
8.3.00.0080.00020.79
8.2.180.0060.01218.44
8.2.170.0070.00722.96
8.2.160.0090.00620.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00620.77
8.2.110.0030.00620.38
8.2.100.0110.00017.70
8.2.90.0000.00917.75
8.2.80.0000.00818.91
8.2.70.0040.00417.80
8.2.60.0040.00818.03
8.2.50.0030.00619.27
8.2.40.0040.00420.90
8.2.30.0080.00019.19
8.2.20.0050.00217.88
8.2.10.0070.00018.05
8.2.00.0040.00417.64
8.1.280.0070.00725.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0000.01317.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0060.00317.38
8.1.180.0000.00819.09
8.1.170.0080.00018.58
8.1.160.0080.00018.96
8.1.150.0040.00320.31
8.1.140.0040.00419.58
8.1.130.0070.00017.57
8.1.120.0030.00317.43
8.1.110.0000.00817.50
8.1.100.0040.00417.49
8.1.90.0040.00417.50
8.1.80.0040.00417.39
8.1.70.0000.00717.48
8.1.60.0030.00517.58
8.1.50.0040.00417.45
8.1.40.0070.00017.52
8.1.30.0040.00417.64
8.1.20.0030.00517.63
8.1.10.0000.00717.44
8.1.00.0090.00317.39
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.41
8.0.270.0000.00817.11
8.0.260.0060.00017.10
8.0.250.0030.00316.83
8.0.240.0000.00716.97
8.0.230.0000.00716.82
8.0.220.0000.00816.80
8.0.210.0030.00316.75
8.0.200.0060.00016.84
8.0.190.0040.00416.96
8.0.180.0040.00416.90
8.0.170.0040.00416.79
8.0.160.0000.00716.93
8.0.150.0030.00516.86
8.0.140.0040.00416.90
8.0.130.0030.00313.39
8.0.120.0000.00816.94
8.0.110.0000.00816.86
8.0.100.0040.00416.94
8.0.90.0030.00416.78
8.0.80.0140.00716.96
8.0.70.0070.00016.95
8.0.60.0000.00717.00
8.0.50.0040.00416.89
8.0.30.0040.01316.99
8.0.20.0120.00717.40
8.0.10.0070.00017.14
8.0.00.0090.00816.65
7.4.330.0020.00215.55
7.4.320.0000.00716.36
7.4.300.0000.00616.57
7.4.290.0080.00016.48
7.4.280.0000.00816.35
7.4.270.0030.00316.50
7.4.260.0030.00316.50
7.4.250.0040.00416.42
7.4.240.0030.00316.50
7.4.230.0000.00816.50
7.4.220.0110.00716.60
7.4.210.0060.01316.43
7.4.200.0000.00716.40
7.4.160.0090.00716.40
7.4.150.0130.00617.40
7.4.140.0060.01417.86
7.4.130.0060.01116.62
7.4.120.0070.01016.58
7.4.110.0100.00716.51
7.4.100.0170.00616.50
7.4.90.0070.01116.70
7.4.80.0060.01519.39
7.4.70.0070.01016.63
7.4.60.0110.00816.49
7.4.50.0030.01416.59
7.4.40.0150.00716.42
7.4.30.0070.01016.61
7.4.00.0120.00315.13
7.3.330.0060.00313.37
7.3.320.0030.00313.18
7.3.310.0030.00316.34
7.3.300.0000.00716.32
7.3.290.0050.01116.35
7.3.280.0130.00516.37
7.3.270.0060.01317.40
7.3.260.0130.00716.56
7.3.250.0100.00916.43
7.3.240.0100.00816.48
7.3.230.0090.00916.49
7.3.210.0100.00716.71
7.3.200.0030.01516.44
7.3.190.0070.01016.38
7.3.180.0100.00616.36
7.3.170.0060.01116.52
7.3.160.0110.01116.48
7.3.10.0080.00616.70
7.3.00.0070.00716.68
7.2.330.0130.00316.64
7.2.320.0100.00716.68
7.2.310.0040.01216.41
7.2.300.0040.01416.60
7.2.290.0070.01016.44
7.2.130.0000.00916.93
7.2.120.0040.00716.72
7.2.110.0100.00716.94
7.2.100.0060.00616.93
7.2.90.0040.00816.74
7.2.80.0040.00716.79
7.2.70.0090.00316.92
7.2.60.0110.00616.87
7.2.50.0070.00516.98
7.2.40.0030.00916.97
7.2.30.0030.00616.93
7.2.20.0030.00616.94
7.2.10.0030.00916.94
7.2.00.0030.00916.88
7.1.250.0000.00915.92
7.1.200.0000.01015.86
7.1.70.0040.00417.02
7.1.60.0060.00617.32
7.1.00.0130.06722.34
7.0.200.0280.00714.82
7.0.130.0070.06322.07
7.0.120.0130.07321.96
7.0.110.0170.07022.16
7.0.100.0030.07721.96
7.0.90.0100.06722.11
7.0.80.0130.06321.96
7.0.70.0170.07021.98
7.0.60.0200.06022.04
7.0.50.0130.07322.19
7.0.40.0030.05722.12
7.0.30.0070.05722.00
7.0.20.0070.06322.13
7.0.10.0100.07021.97
7.0.00.0100.07022.03
5.6.280.0230.05720.92
5.6.270.0170.06721.10
5.6.260.0030.07020.87
5.6.250.0200.05021.09
5.6.240.0030.08020.97
5.6.230.0070.08021.11
5.6.220.0070.07721.05
5.6.210.0100.06720.93
5.6.200.0130.07720.92
5.6.190.0000.06720.88
5.6.180.0030.05720.86
5.6.170.0070.05720.87
5.6.160.0230.04321.08
5.6.150.0000.06321.08
5.6.140.0130.06021.07
5.6.130.0070.07020.88
5.6.120.0130.06021.04
5.6.110.0070.06720.88
5.6.100.0070.06720.98
5.6.90.0100.06021.02
5.6.80.0170.05720.24
5.6.70.0030.08020.29
5.6.60.0100.07720.26
5.6.50.0100.07020.12
5.6.40.0030.06320.18
5.6.30.0130.07020.23
5.6.20.0100.05720.24
5.6.10.0100.07020.24
5.6.00.0070.06020.16

preferences:
37.13 ms | 401 KiB | 5 Q