3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo ($firstname) { if (!$firstname) { throw new \Exception('Division par zéro.'); } } try { foo(null); }catch (\Exception $e ) { var_dump($e); }

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.0080.00816.63
8.3.50.0090.00616.50
8.3.40.0090.00918.79
8.3.30.0120.00318.84
8.3.20.0070.00020.30
8.3.10.0000.00821.77
8.3.00.0060.00317.90
8.2.180.0110.00716.75
8.2.170.0140.00422.96
8.2.160.0070.00720.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00321.03
8.2.120.0000.00826.35
8.2.110.0070.00320.79
8.2.100.0090.00318.22
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0080.00018.10
8.2.40.0040.00420.66
8.2.30.0000.00720.96
8.2.20.0040.00418.06
8.2.10.0040.00417.98
8.2.00.0080.00018.04
8.1.280.0170.00325.92
8.1.270.0050.00223.97
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.11
8.1.230.0040.00719.14
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00418.41
8.1.160.0000.00719.02
8.1.150.0040.00420.67
8.1.140.0040.00419.56
8.1.130.0000.00718.93
8.1.120.0020.00517.44
8.1.110.0090.00017.42
8.1.100.0030.00517.46
8.1.90.0000.00817.37
8.1.80.0040.00417.47
8.1.70.0040.00417.49
8.1.60.0040.00417.63
8.1.50.0000.00717.43
8.1.40.0030.00517.55
8.1.30.0000.00817.51
8.1.20.0000.01117.56
8.1.10.0000.00717.48
8.1.00.0080.00017.50
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0070.00017.16
8.0.260.0080.00016.79
8.0.250.0040.00417.00
8.0.240.0070.00016.93
8.0.230.0030.00517.04
8.0.220.0000.00717.01
8.0.210.0030.00316.82
8.0.200.0020.00516.90
8.0.190.0060.00316.91
8.0.180.0050.00317.02
8.0.170.0000.00716.99
8.0.160.0050.00216.93
8.0.150.0070.00016.96
8.0.140.0030.00416.90
8.0.130.0060.00013.34
8.0.120.0000.00716.88
8.0.110.0030.00316.82
8.0.100.0040.00416.82
8.0.90.0040.00417.01
8.0.80.0040.01216.95
8.0.70.0070.00016.94
8.0.60.0000.00716.82
8.0.50.0080.00016.91
8.0.30.0060.01317.08
8.0.20.0080.01117.40
8.0.10.0040.00417.03
8.0.00.0040.01516.73
7.4.330.0020.00215.55
7.4.320.0000.00816.45
7.4.300.0000.00716.49
7.4.290.0070.00316.55
7.4.280.0050.00316.61
7.4.270.0030.00316.48
7.4.260.0000.00713.20
7.4.250.0040.00416.48
7.4.240.0040.00416.59
7.4.230.0030.00316.52
7.4.220.0070.01116.40
7.4.210.0120.00316.61
7.4.200.0030.00316.30
7.4.160.0090.00716.44
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0090.01016.43
7.4.120.0060.01116.59
7.3.330.0060.00013.35
7.3.320.0000.00513.21
7.3.310.0080.00016.17
7.3.300.0060.00016.31
7.3.290.0070.00816.37
7.3.280.0100.00616.36
7.3.270.0150.00317.40
7.3.260.0090.00916.43
7.3.250.0110.00716.41
7.3.240.0100.00816.38
7.1.70.0130.01015.36

preferences:
48.53 ms | 401 KiB | 5 Q