3v4l.org

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

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.00416.63
8.3.50.0070.01016.60
8.3.40.0000.01518.66
8.3.30.0060.01218.53
8.3.20.0070.00020.29
8.3.10.0050.00321.65
8.3.00.0110.00019.54
8.2.180.0110.00418.54
8.2.170.0120.00322.96
8.2.160.0100.00322.12
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0050.00326.35
8.2.110.0060.00321.06
8.2.100.0000.01117.97
8.2.90.0050.00319.17
8.2.80.0050.00317.97
8.2.70.0000.00917.50
8.2.60.0060.00317.93
8.2.50.0060.00318.10
8.2.40.0030.00520.45
8.2.30.0070.00020.97
8.2.20.0020.00517.86
8.2.10.0060.00318.09
8.2.00.0070.00018.07
8.1.280.0130.00725.92
8.1.270.0080.00023.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00823.92
8.1.230.0100.00019.05
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0100.00017.22
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0000.00718.95
8.1.150.0020.00520.46
8.1.140.0000.00719.32
8.1.130.0070.00018.76
8.1.120.0000.00717.35
8.1.110.0070.00017.39
8.1.100.0000.00817.33
8.1.90.0040.00417.25
8.1.80.0030.00317.32
8.1.70.0020.00517.38
8.1.60.0000.00817.48
8.1.50.0030.00617.46
8.1.40.0040.00417.43
8.1.30.0040.00417.54
8.1.20.0000.00917.63
8.1.10.0050.00317.54
8.1.00.0030.00617.45
8.0.300.0040.00418.77
8.0.290.0000.00916.63
8.0.280.0050.00318.30
8.0.270.0000.00717.09
8.0.260.0000.00716.87
8.0.250.0030.00316.80
8.0.240.0030.00516.87
8.0.230.0000.00716.90
8.0.220.0030.00316.87
8.0.210.0030.00516.79
8.0.200.0060.00016.93
8.0.190.0070.00416.88
8.0.180.0080.00016.94
8.0.170.0040.00416.97
8.0.160.0040.00416.87
8.0.150.0030.00316.76
8.0.140.0000.00816.73
8.0.130.0050.00013.33
8.0.120.0000.00716.85
8.0.110.0000.00716.88
8.0.100.0000.00716.73
8.0.90.0070.00016.86
8.0.80.0080.00816.89
8.0.70.0000.00716.77
8.0.60.0050.00216.86
8.0.50.0050.00216.79
8.0.30.0100.00817.13
8.0.20.0080.01217.40
8.0.10.0040.00416.93
8.0.00.0070.01016.66
7.4.330.0050.00015.55
7.4.320.0000.00616.27
7.4.300.0000.00616.54
7.4.290.0000.00716.42
7.4.280.0040.00416.43
7.4.270.0040.00416.50
7.4.260.0000.00513.16
7.4.250.0060.00316.47
7.4.240.0070.00016.54
7.4.230.0030.00316.32
7.4.220.0090.00916.54
7.4.210.0100.01016.45
7.4.200.0070.00016.35
7.4.160.0080.00816.34
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0160.00316.53
7.4.120.0060.01216.52
7.3.330.0000.00513.36
7.3.320.0050.00013.16
7.3.310.0040.00416.19
7.3.300.0060.00016.30
7.3.290.0150.00216.31
7.3.280.0080.00816.30
7.3.270.0060.01017.40
7.3.260.0070.01016.45
7.3.250.0090.00816.33
7.3.240.0130.00416.45
7.1.70.0070.00717.06

preferences:
39 ms | 401 KiB | 5 Q