3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $serverity, string $message, string $filename, int $line) { if (error_reporting() === 0) { //C'รจ una @ } else { http_response_code(500); var_dump("throw"); throw new \ErrorException($message, 0, $serverity, $filename, $line); } }); $ciao = "ciao"; try { $ciao(); }catch(\Throwable $e) { var_dump("catc"); }

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.0030.01618.43
8.3.50.0120.00316.63
8.3.40.0160.00318.98
8.3.30.0140.00318.67
8.3.20.0070.00021.85
8.3.10.0060.00323.66
8.3.00.0040.00417.80
8.2.180.0070.01418.31
8.2.170.0100.00722.96
8.2.160.0120.00321.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00017.63
8.2.110.0100.00022.11
8.2.100.0060.00617.89
8.2.90.0090.00019.07
8.2.80.0030.00617.97
8.2.70.0000.00817.62
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0030.00722.20
8.2.30.0040.00419.23
8.2.20.0020.00518.05
8.2.10.0080.00018.14
8.2.00.0040.00418.09
8.1.280.0150.00325.92
8.1.270.0040.00423.74
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0160.00419.14
8.1.230.0070.00317.77
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00417.52
8.1.180.0080.00018.10
8.1.170.0060.00318.72
8.1.160.0040.00418.89
8.1.150.0000.00820.06
8.1.140.0040.00419.65
8.1.130.0070.00018.89
8.1.120.0000.00717.36
8.1.110.0040.00417.40
8.1.100.0050.00317.38
8.1.90.0040.00417.34
8.1.80.0030.00317.51
8.1.70.0070.00017.43
8.1.60.0080.00017.60
8.1.50.0070.00017.43
8.1.40.0050.00317.53
8.1.30.0070.00017.71
8.1.20.0040.00417.51
8.1.10.0000.00817.62
8.1.00.0030.00617.55
8.0.300.0000.00718.77
8.0.290.0000.00716.74
8.0.280.0030.00318.25
8.0.270.0040.00417.19
8.0.260.0000.00616.86
8.0.250.0030.00316.98
8.0.240.0050.00517.02
8.0.230.0040.00416.83
8.0.220.0030.00316.93
8.0.210.0000.00816.78
8.0.200.0000.00916.99
8.0.190.0000.00817.03
8.0.180.0000.00716.95
8.0.170.0000.00716.94
8.0.160.0000.00817.03
8.0.150.0030.00516.86
8.0.140.0040.00416.97
8.0.130.0000.00513.46
8.0.120.0000.00716.95
8.0.110.0040.00416.93
8.0.100.0030.00516.97
8.0.90.0080.00016.93
8.0.80.0080.00816.94
8.0.70.0040.00416.78
8.0.60.0000.00716.84
8.0.50.0000.00716.78
8.0.30.0060.01216.91
8.0.20.0080.01317.40
8.0.10.0070.00016.92
8.0.00.0160.00016.50
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0030.00316.55
7.4.290.0000.00716.59
7.4.280.0080.00016.41
7.4.270.0040.00416.52
7.4.260.0050.00013.23
7.4.250.0000.00716.48
7.4.240.0000.00716.58
7.4.230.0040.00416.50
7.4.220.0060.00916.50
7.4.210.0100.00716.55
7.4.200.0000.00716.70
7.4.160.0060.00916.48
7.4.150.0150.00417.40
7.4.140.0070.01317.86
7.4.130.0100.01216.53
7.4.120.0080.01116.55
7.4.110.0170.00316.40
7.4.100.0130.00416.51
7.4.90.0030.01516.43
7.4.80.0120.00419.39
7.4.70.0060.00916.77
7.4.60.0140.00616.58
7.4.50.0030.01216.32
7.4.40.0060.01216.73
7.4.30.0120.00616.39
7.4.00.0000.01314.84
7.3.330.0050.00013.12
7.3.320.0000.00513.16
7.3.310.0070.00016.20
7.3.300.0030.00316.32
7.3.290.0070.01116.36
7.3.280.0110.00516.27
7.3.270.0070.01017.40
7.3.260.0110.00916.36
7.3.250.0130.00716.38
7.3.240.0110.00616.33
7.3.230.0060.01116.53
7.3.210.0030.01516.29
7.3.200.0110.00816.29
7.3.190.0070.01416.50
7.3.180.0100.00616.28
7.3.170.0120.00316.43
7.3.160.0060.00916.46
7.3.10.0060.01116.12
7.3.00.0090.00716.20
7.2.330.0120.00616.81
7.2.320.0070.01316.81
7.2.310.0060.01016.52
7.2.300.0100.00716.24
7.2.290.0100.00716.55
7.2.130.0130.00816.39
7.2.120.0110.01016.41
7.2.110.0100.00516.40
7.2.100.0070.01316.49
7.2.90.0090.01316.67
7.2.80.0100.00816.38
7.2.70.0080.01016.53
7.2.60.0080.00916.68
7.2.50.0090.00916.49
7.2.40.0090.00716.51
7.2.30.0130.00516.61
7.2.20.0100.00716.59
7.2.10.0080.00916.56
7.2.00.0080.00717.31
7.1.250.0120.00615.54
7.1.200.0000.00615.62
7.1.70.0040.00417.13
7.1.60.0500.01733.04
7.1.50.0530.01032.79
7.1.40.0430.01332.64
7.1.30.0230.01332.54
7.1.20.0700.02332.79
7.1.10.0200.00714.74
7.1.00.0630.00714.63
7.0.200.0400.01314.74
7.0.190.0130.00714.69
7.0.180.0130.00014.35
7.0.170.0770.01014.47
7.0.160.0530.01314.46
7.0.150.0530.00714.46
7.0.140.0500.00714.55
7.0.130.0230.01314.81
7.0.120.0770.01014.67
7.0.110.0500.01314.37
7.0.100.0100.01014.52
7.0.90.0930.00714.69
7.0.80.0570.00714.62
7.0.70.0730.01014.34
7.0.60.0070.01014.29
7.0.50.0800.00714.65
7.0.40.0100.01314.73
7.0.30.0700.01314.43
7.0.20.0070.01014.37
7.0.10.0600.00314.63
7.0.00.0570.00714.26

preferences:
66.61 ms | 401 KiB | 5 Q