3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler('myerrorhandler'); function myfunc(stdClass $a) {} function myerrorhandler($errno, $errstr, $errfile, $errline, $errcontext) { echo "Error handler\n$errno\n$errstr\n"; } try { myfunc('iamnotaclass'); } catch (Exception $e) { echo "Exception\n"; var_dump($e); } catch (Throwable $e) { echo "Throwable\n"; 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.0140.00716.75
8.3.50.0150.00018.28
8.3.40.0100.00618.75
8.3.30.0070.00718.88
8.3.20.0120.00320.08
8.3.10.0050.00323.66
8.3.00.0080.00019.85
8.2.180.0120.00618.16
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00320.87
8.2.120.0050.00326.35
8.2.110.0140.00722.21
8.2.100.0110.00017.93
8.2.90.0050.00319.27
8.2.80.0060.00318.04
8.2.70.0050.00517.50
8.2.60.0090.00317.68
8.2.50.0030.00518.07
8.2.40.0060.00322.28
8.2.30.0000.00720.63
8.2.20.0000.00717.74
8.2.10.0060.00317.85
8.2.00.0040.00417.99
8.1.280.0090.00625.92
8.1.270.0080.00020.20
8.1.260.0000.00728.09
8.1.250.0050.00328.09
8.1.240.0040.00423.71
8.1.230.0030.01019.21
8.1.220.0030.00517.74
8.1.210.0040.00718.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0080.00018.50
8.1.160.0040.00420.72
8.1.150.0050.00218.82
8.1.140.0030.00519.52
8.1.130.0020.00517.56
8.1.120.0070.00017.42
8.1.110.0050.00317.34
8.1.100.0050.00317.43
8.1.90.0040.00417.31
8.1.80.0070.00017.32
8.1.70.0070.00017.22
8.1.60.0090.00017.59
8.1.50.0000.00817.43
8.1.40.0000.00917.52
8.1.30.0000.00817.55
8.1.20.0030.00617.50
8.1.10.0000.00817.48
8.1.00.0050.00317.51
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0050.00218.55
8.0.270.0050.00217.18
8.0.260.0060.00317.26
8.0.250.0000.00716.98
8.0.240.0030.00316.98
8.0.230.0030.00316.95
8.0.220.0080.00016.94
8.0.210.0040.00416.79
8.0.200.0060.00017.00
8.0.190.0050.00516.85
8.0.180.0000.00816.96
8.0.170.0000.00916.93
8.0.160.0000.00716.93
8.0.150.0000.00816.80
8.0.140.0000.00816.83
8.0.130.0030.00313.32
8.0.120.0040.00416.84
8.0.110.0070.00016.90
8.0.100.0000.00716.76
8.0.90.0070.00016.88
8.0.80.0030.01216.85
8.0.70.0040.00416.88
8.0.60.0000.00816.77
8.0.50.0040.00416.77
8.0.30.0120.00817.10
8.0.20.0100.01017.40
8.0.10.0040.00416.83
8.0.00.0090.00916.81
7.4.330.0000.00616.80
7.4.320.0030.00316.30
7.4.300.0000.00616.65
7.4.290.0070.00016.53
7.4.280.0040.00416.51
7.4.270.0000.00716.60
7.4.260.0000.00716.52
7.4.250.0020.00516.49
7.4.240.0020.00616.49
7.4.230.0000.00716.42
7.4.220.0060.01316.63
7.4.210.0080.00916.52
7.4.200.0030.00316.70
7.4.160.0110.00516.41
7.4.150.0060.01417.40
7.4.140.0080.01317.86
7.4.130.0100.01016.53
7.4.120.0100.00716.54
7.4.110.0080.01116.59
7.4.100.0190.00016.53
7.4.90.0190.00016.63
7.4.80.0070.01619.39
7.4.70.0110.00716.53
7.4.60.0060.01216.39
7.4.50.0000.01516.33
7.4.40.0100.00816.47
7.4.30.0140.00316.52
7.4.00.0090.00314.71
7.3.330.0050.00013.32
7.3.320.0050.00013.14
7.3.310.0040.00416.36
7.3.300.0070.00016.35
7.3.290.0000.00616.24
7.3.280.0060.01116.27
7.3.270.0130.01017.40
7.3.260.0110.00716.37
7.3.250.0130.00516.33
7.3.240.0110.01116.46
7.3.230.0090.00716.51
7.3.210.0100.00916.53
7.3.200.0090.00916.26
7.3.190.0140.00316.30
7.3.180.0090.00916.39
7.3.170.0160.00316.34
7.3.160.0100.01016.36
7.2.330.0060.01216.32
7.2.320.0180.00016.85
7.2.310.0070.01116.66
7.2.300.0110.00516.78
7.2.290.0120.00616.46
7.2.60.0070.00716.97
7.2.00.0040.01119.45
7.1.200.0100.00315.69
7.1.100.0000.01118.29
7.1.70.0030.00617.19
7.1.60.0110.01419.52
7.1.50.0040.00716.98
7.1.00.0100.06722.30
7.0.200.0030.00616.44
7.0.60.0200.08019.84
7.0.50.0070.08017.93
7.0.40.0030.07020.40
7.0.30.0100.09020.06
7.0.20.0200.04320.19
7.0.10.0100.07020.33
7.0.00.0030.04720.12
5.6.280.0070.03020.93
5.6.210.0070.07720.66
5.6.200.0070.08718.18
5.6.190.0030.05320.48
5.6.180.0270.03720.33
5.6.170.0130.04320.46
5.6.160.0070.07718.28
5.6.150.0030.04318.29
5.6.140.0030.08318.14
5.6.130.0130.06018.24
5.6.120.0030.06021.14
5.6.110.0070.04720.96
5.6.100.0100.07721.14
5.6.90.0070.08020.97
5.6.80.0200.04720.39
5.5.350.0000.08320.43
5.5.340.0030.06318.08
5.5.330.0030.05020.30
5.5.320.0100.06020.27
5.5.310.0230.06020.32
5.5.300.0070.04017.95
5.5.290.0100.03318.07
5.5.280.0030.06020.81
5.5.270.0000.04320.77
5.5.260.0130.07720.84
5.5.250.0030.05020.70
5.5.240.0230.07320.13

preferences:
59.87 ms | 400 KiB | 5 Q