3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler('myerrorhandler'); set_exception_handler('myexceptionhandler'); function myfunc(stdClass $a) {} function myerrorhandler($errno, $errstr, $errfile, $errline, $errcontext) { echo "Error handler\n$errno\n$errstr\n"; } function myexceptionhandler($e) { echo "Exception handler\n";var_dump($e); } try { myfunc('iamnotaclass'); } catch (Exception $e) { echo "Exception\n"; throw $e; } catch (Throwable $e) { echo "Throwable\n"; throw $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.0130.00916.50
8.3.50.0120.01021.99
8.3.40.0090.01318.88
8.3.30.0070.00718.66
8.3.20.0090.00020.32
8.3.10.0050.00323.68
8.3.00.0040.00419.73
8.2.180.0100.00716.73
8.2.170.0090.00622.96
8.2.160.0110.00420.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00421.00
8.2.120.0050.00326.35
8.2.110.0100.00022.30
8.2.100.0060.00617.92
8.2.90.0080.00019.18
8.2.80.0050.00317.97
8.2.70.0090.00017.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0080.00022.37
8.2.30.0040.00420.67
8.2.20.0040.00417.75
8.2.10.0000.00718.05
8.2.00.0000.00717.97
8.1.280.0090.00625.92
8.1.270.0060.00320.83
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00722.48
8.1.230.0110.00018.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.36
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0090.00018.40
8.1.160.0030.00520.71
8.1.150.0050.00318.81
8.1.140.0000.00819.63
8.1.130.0000.00717.75
8.1.120.0030.00417.38
8.1.110.0000.00817.53
8.1.100.0000.00717.41
8.1.90.0040.00417.52
8.1.80.0040.00417.49
8.1.70.0030.00317.41
8.1.60.0050.00217.48
8.1.50.0080.00017.53
8.1.40.0040.00417.48
8.1.30.0000.00717.52
8.1.20.0000.00717.55
8.1.10.0100.00017.58
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0070.00018.44
8.0.270.0000.00717.26
8.0.260.0030.00717.28
8.0.250.0000.00716.89
8.0.240.0040.00416.99
8.0.230.0030.00317.00
8.0.220.0080.00016.84
8.0.210.0040.00416.93
8.0.200.0030.00316.87
8.0.190.0050.00316.91
8.0.180.0070.00016.91
8.0.170.0070.00016.96
8.0.160.0000.00716.94
8.0.150.0080.00016.89
8.0.140.0070.00016.82
8.0.130.0030.00313.40
8.0.120.0000.00816.84
8.0.110.0000.00816.94
8.0.100.0040.00417.07
8.0.90.0030.00516.93
8.0.80.0080.00816.91
8.0.70.0040.00416.79
8.0.60.0070.00016.84
8.0.50.0000.00716.84
8.0.30.0130.00417.04
8.0.20.0110.00817.40
8.0.10.0000.00817.04
8.0.00.0090.01016.92
7.4.330.0000.00516.74
7.4.320.0030.00316.69
7.4.300.0030.00316.61
7.4.290.0000.00716.46
7.4.280.0030.00516.57
7.4.270.0080.00016.55
7.4.260.0030.00316.48
7.4.250.0000.00716.48
7.4.240.0020.00516.49
7.4.230.0000.00716.64
7.4.220.0030.01416.47
7.4.210.0070.01016.52
7.4.200.0000.00716.69
7.4.160.0150.00016.56
7.4.150.0100.00717.40
7.4.140.0160.00617.86
7.4.130.0120.00816.54
7.4.120.0120.00616.47
7.4.110.0130.00616.58
7.4.100.0030.01516.47
7.4.90.0030.01416.50
7.4.80.0140.00419.39
7.4.70.0080.00816.23
7.4.60.0070.01016.41
7.4.50.0030.01016.47
7.4.40.0030.01316.36
7.4.30.0110.01116.49
7.4.00.0140.00314.88
7.3.330.0020.00213.32
7.3.320.0000.00513.44
7.3.310.0000.00816.39
7.3.300.0000.00716.37
7.3.290.0000.00716.30
7.3.280.0090.00816.33
7.3.270.0150.00917.40
7.3.260.0140.00316.52
7.3.250.0090.00916.49
7.3.240.0130.00516.44
7.3.230.0130.01316.50
7.3.210.0080.01216.49
7.3.200.0070.01316.45
7.3.190.0070.01116.41
7.3.180.0090.00916.53
7.3.170.0150.00916.50
7.3.160.0070.01416.46
7.2.330.0070.01116.74
7.2.320.0140.01016.37
7.2.310.0080.01116.59
7.2.300.0100.00716.77
7.2.290.0040.01416.46
7.2.60.0030.01316.53
7.1.200.0000.01115.91
7.1.100.0000.01118.08
7.1.70.0040.00417.15
7.1.60.0090.01519.52
7.1.50.0030.00916.83
7.1.00.0030.07722.58
7.0.200.0000.00716.82
7.0.60.0070.08719.88
7.0.50.0170.07317.73
7.0.40.0030.04320.02
7.0.30.0200.09020.08
7.0.20.0200.04320.16
7.0.10.0100.05020.07
7.0.00.0030.07720.30
5.6.280.0000.03321.12
5.6.210.0100.08020.51
5.6.200.0070.05318.22
5.6.190.0070.06020.57
5.6.180.0200.05020.46
5.6.170.0130.04320.71
5.6.160.0070.04020.44
5.6.150.0070.08318.29
5.6.140.0170.05018.18
5.6.130.0000.04318.15
5.6.120.0000.08321.00
5.6.110.0130.08720.99
5.6.100.0030.08321.00
5.6.90.0070.06321.08
5.6.80.0100.08020.52
5.5.350.0330.08320.35
5.5.340.0100.06318.04
5.5.330.0030.08720.21
5.5.320.0170.08020.38
5.5.310.0230.05720.22
5.5.300.0100.03718.06
5.5.290.0000.04317.92
5.5.280.0070.08720.89
5.5.270.0030.05320.79
5.5.260.0100.06020.73
5.5.250.0100.07020.61
5.5.240.4100.04020.04

preferences:
52.01 ms | 401 KiB | 5 Q