3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = []; set_error_handler (function (){ var_dump("qwqew"); },E_NOTICE); set_error_handler (function (){ var_dump("xcxcxcx"); },E_ALL); try { $match[1]; } catch (\Exception $e) { echo 'Exception:' . $e->getMessage(); }

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.00716.50
8.3.50.0120.00317.94
8.3.40.0120.00318.97
8.3.30.0070.00718.65
8.3.20.0030.00619.07
8.3.10.0050.00319.17
8.3.00.0070.00723.47
8.2.180.0130.00316.88
8.2.170.0090.00622.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00019.95
8.2.120.0050.00226.35
8.2.110.0080.00321.04
8.2.100.0090.00617.74
8.2.90.0040.00419.27
8.2.80.0000.00817.97
8.2.70.0030.00618.05
8.2.60.0050.00318.04
8.2.50.0050.00318.10
8.2.40.0080.00019.34
8.2.30.0050.00319.38
8.2.20.0040.00418.13
8.2.10.0040.00418.14
8.2.00.0040.00319.45
8.1.280.0120.00925.92
8.1.270.0080.00022.16
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00721.00
8.1.230.0090.00317.58
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0050.00318.71
8.1.160.0000.00718.85
8.1.150.0030.00518.80
8.1.140.0000.00717.74
8.1.130.0070.00019.10
8.1.120.0040.00417.46
8.1.110.0000.00717.52
8.1.100.0030.00517.47
8.1.90.0070.00317.43
8.1.80.0040.00417.36
8.1.70.0030.00617.49
8.1.60.0050.00317.51
8.1.50.0040.00417.38
8.1.40.0040.00417.59
8.1.30.0090.00017.59
8.1.20.0000.00717.59
8.1.10.0030.00617.46
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0030.00318.38
8.0.270.0020.00517.07
8.0.260.0030.00317.06
8.0.250.0040.00416.86
8.0.240.0040.00416.98
8.0.230.0000.00716.89
8.0.220.0000.00716.93
8.0.210.0030.00316.86
8.0.200.0000.00816.90
8.0.190.0040.00416.90
8.0.180.0050.00516.96
8.0.170.0030.00616.81
8.0.160.0000.00716.95
8.0.150.0070.00016.80
8.0.140.0070.00016.84
8.0.130.0030.00313.44
8.0.120.0040.00416.79
8.0.110.0040.00416.82
8.0.100.0040.00416.88
8.0.90.0000.00717.07
8.0.80.0050.01216.88
8.0.70.0080.00016.89
8.0.60.0040.00416.80
8.0.50.0040.00416.95
8.0.30.0120.00717.19
8.0.20.0060.01317.40
8.0.10.0030.00317.06
8.0.00.0160.01716.77
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0000.00616.61
7.4.290.0070.00016.55
7.4.280.0030.00616.61
7.4.270.0050.00316.52
7.4.260.0030.00316.47
7.4.250.0030.00316.45
7.4.240.0040.00416.61
7.4.230.0000.00716.51
7.4.220.0050.00316.58
7.4.210.0050.01116.57
7.4.200.0000.00716.47
7.4.160.0110.00516.50
7.4.140.0120.01017.86
7.4.130.0040.01216.44
7.4.120.0130.00716.54
7.4.110.0070.01116.45
7.4.100.0140.00316.63
7.4.90.0100.00716.52
7.4.80.0120.02919.39
7.4.70.0030.01316.63
7.4.60.0030.01416.51
7.4.50.0090.00616.24
7.4.40.0040.01616.27
7.4.00.0040.00814.90
7.3.330.0000.00513.29
7.3.320.0060.00013.20
7.3.310.0040.00416.40
7.3.300.0070.00016.24
7.3.290.0000.00716.25
7.3.280.0070.01116.24
7.3.260.0090.00816.47
7.3.240.0110.00716.42
7.3.230.0030.01316.43
7.3.210.0090.01316.44
7.3.200.0150.00916.43
7.3.190.0120.00316.38
7.3.180.0000.01416.42
7.3.170.0110.00516.25
7.3.160.0090.00916.32
7.2.330.0130.01016.70
7.2.320.0100.01016.71
7.2.310.0030.02016.68
7.2.300.0150.00716.38
7.2.290.0100.00716.69
7.2.60.0100.00316.60
7.2.50.0060.00716.78
7.2.40.0070.00716.46
7.2.30.0000.01316.77
7.2.20.0060.00916.75
7.2.10.0030.01016.58
7.2.00.0060.00916.60
7.1.200.0000.01315.79
7.1.170.0000.01315.71
7.1.160.0060.00615.58
7.1.150.0080.00515.70
7.1.140.0040.00815.67
7.1.130.0070.00715.60
7.1.120.0090.00315.64
7.1.110.0120.00015.52
7.1.100.0030.00915.79
7.1.90.0100.00315.58
7.1.80.0090.00915.27
7.1.70.0030.00915.71
7.1.60.0270.00333.44
7.1.50.0250.00633.73
7.1.40.0310.01233.36
7.1.30.0240.00633.29
7.1.20.0380.01033.43
7.1.10.0100.00215.68
7.1.00.0070.01015.51

preferences:
56.13 ms | 400 KiB | 5 Q