3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(exception $e) { throw $e; } function bar(){ return new Exception("here"); } foo(bar());

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.1.20.0000.00817.59
8.1.10.0030.00617.42
8.1.00.0030.00717.45
8.0.150.0050.00316.83
8.0.140.0040.00416.87
8.0.130.0000.00513.38
8.0.120.0020.00516.88
8.0.110.0040.00416.81
8.0.100.0040.00416.80
8.0.90.0030.00316.98
8.0.80.0100.00516.91
8.0.70.0040.00416.74
8.0.60.0000.00717.01
8.0.50.0040.00416.89
8.0.30.0100.01017.07
8.0.20.0090.01117.18
8.0.10.0040.00416.95
8.0.00.0050.01416.47
7.4.270.0030.00316.54
7.4.260.0050.00013.20
7.4.250.0030.00316.31
7.4.240.0030.00316.42
7.4.230.0030.00316.27
7.4.220.0000.00816.47
7.4.210.0070.00716.50
7.4.200.0030.00316.24
7.4.130.0120.00616.50
7.4.120.0030.01316.21
7.4.110.0100.00716.37
7.4.100.0070.01016.47
7.4.90.0100.01016.31
7.4.80.0140.00316.16
7.4.70.0030.01816.56
7.4.60.0110.00716.37
7.4.50.0130.00316.18
7.4.40.0030.01416.28
7.4.30.0030.01316.20
7.4.20.0090.00916.05
7.4.10.0060.00916.60
7.4.00.0090.00916.39
7.3.330.0070.00016.41
7.3.320.0000.00613.36
7.3.310.0040.00416.35
7.3.300.0030.00316.23
7.3.290.0090.01016.33
7.3.260.0140.00716.34
7.3.250.0110.00816.38
7.3.240.0060.01016.27
7.3.230.0140.00316.42
7.3.220.0100.00716.66
7.3.210.0070.01416.29
7.3.200.0120.00616.34
7.3.190.0100.01716.43
7.3.180.0030.01316.30
7.3.170.0030.01416.23
7.3.160.0100.00716.14
7.3.150.0050.01316.27
7.3.140.0100.00716.31
7.3.130.0110.01116.40
7.3.120.0200.00016.47
7.3.110.0100.00716.27
7.3.100.0150.00616.27
7.3.90.0060.01316.51
7.3.80.0090.00916.46
7.3.70.0130.00716.21
7.3.60.0140.00616.32
7.3.50.0100.01016.26
7.3.40.0160.00816.35
7.3.30.0120.01216.18
7.3.20.0190.00616.18
7.3.10.0130.01316.29
7.3.00.0030.01616.33
7.2.340.0130.00516.51
7.2.330.0090.00916.29
7.2.320.0130.00516.44
7.2.310.0030.01416.61
7.2.300.0120.00616.27
7.2.290.0060.01016.28
7.2.280.0070.01116.48
7.2.270.0100.00716.24
7.2.260.0140.00316.23
7.2.250.0090.01216.23
7.2.240.0130.00616.51
7.2.230.0090.00916.39
7.2.220.0100.01316.61
7.2.210.0120.00616.41
7.2.200.0030.01516.27
7.2.190.0030.01416.44
7.2.180.0190.00316.34
7.2.170.0000.01816.27
7.2.160.0140.01016.15
7.2.150.0060.01616.54
7.2.140.0150.01016.54
7.2.130.0160.00416.50
7.2.120.0090.00916.32
7.2.110.0110.00716.46
7.2.100.0090.00916.50
7.2.90.0550.00616.46
7.2.80.0120.00616.45
7.2.70.0040.01416.48
7.2.60.0070.01916.40
7.2.50.0070.01116.53
7.2.40.0060.01316.58
7.2.30.0090.01516.47
7.2.20.0120.01216.55
7.2.10.0060.01316.44
7.2.00.0100.01316.48

preferences:
22.65 ms | 455 KiB | 5 Q