3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errstr, $errfile, $errline, $errcontext) { // error was suppressed with the @-operator if (0 === error_reporting()) { return false; } throw new ErrorException($errstr, 0, $errno, $errfile, $errline); }); try { var_dump(fopen('file not exist', 'r')); } catch (Throwable $e) { 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.5.00.0130.00820.38
8.4.150.0030.00014.05
8.4.140.0150.00717.72
8.4.130.0120.00818.02
8.4.120.0070.00520.61
8.4.110.0140.00718.86
8.4.100.0140.00717.87
8.4.90.0150.00518.14
8.4.80.0130.00419.77
8.4.70.0060.00217.93
8.4.60.0110.01020.39
8.4.50.0120.00917.96
8.4.40.0130.00717.80
8.4.30.0030.01020.83
8.4.20.0140.00718.01
8.4.10.0050.00519.55
8.3.280.0020.00114.05
8.3.270.0150.00616.54
8.3.260.0140.00516.98
8.3.250.0100.00919.12
8.3.240.0120.00516.68
8.3.230.0120.00916.80
8.3.220.0100.00717.19
8.3.210.0140.00516.87
8.3.200.0030.00616.79
8.3.190.0120.00820.81
8.3.180.0140.00716.58
8.3.170.0030.01517.22
8.3.160.0130.00616.64
8.3.150.0150.00416.73
8.3.140.0080.00018.73
8.3.130.0030.00618.70
8.3.120.0050.00519.01
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0070.00726.77
8.3.80.0030.00619.36
8.3.70.0070.01416.88
8.3.60.0070.01016.50
8.3.50.0140.00523.57
8.3.40.0040.01118.84
8.3.30.0090.00618.67
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0030.00526.16
8.2.290.0130.00618.63
8.2.280.0130.00618.84
8.2.270.0040.01117.20
8.2.260.0070.00717.01
8.2.250.0030.00517.15
8.2.240.0030.00517.27
8.2.230.0000.01122.58
8.2.220.0090.01237.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0070.00717.06
8.2.180.0100.00725.92
8.2.170.0170.00018.96
8.2.160.0130.00722.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0070.00019.76
8.2.110.0060.00320.52
8.2.100.0060.00617.72
8.2.90.0090.00017.88
8.2.80.0050.00318.86
8.2.70.0080.00017.72
8.2.60.0060.00317.50
8.2.50.0080.00018.05
8.2.40.0030.00619.86
8.2.30.0050.00218.09
8.2.20.0000.00718.00
8.2.10.0020.00519.32
8.2.00.0050.00219.32
8.1.330.0060.00416.40
8.1.320.0130.00616.11
8.1.310.0090.00916.21
8.1.300.0040.01518.07
8.1.290.0060.00330.84
8.1.280.0060.00925.92
8.1.270.0050.00323.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00320.46
8.1.230.0000.01122.14
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0000.00719.01
8.1.160.0070.00018.91
8.1.150.0000.00719.02
8.1.140.0030.00618.96
8.1.130.0000.00820.23
8.1.120.0070.00017.37
8.1.110.0080.00317.44
8.1.100.0070.00317.51
8.1.90.0000.00717.37
8.1.80.0000.00717.48
8.1.70.0070.00017.53
8.1.60.0060.00317.56
8.1.50.0030.00717.54
8.1.40.0040.00417.60
8.1.30.0040.00417.72
8.1.20.0000.00817.67
8.1.10.0030.00617.57
8.1.00.0000.01117.53
8.0.300.0000.00918.77
8.0.290.0050.00316.75
8.0.280.0000.00718.48
8.0.270.0000.00718.01
8.0.260.0000.00818.66
8.0.250.0070.00016.93
8.0.240.0040.00417.04
8.0.230.0040.00417.08
8.0.220.0000.00716.98
8.0.210.0000.00716.91
8.0.200.0000.00817.11
8.0.190.0030.00516.97
8.0.180.0000.00716.95
8.0.170.0050.00317.08
8.0.160.0000.00717.07
8.0.150.0040.00416.93
8.0.140.0000.00717.03
8.0.130.0050.00013.43
8.0.120.0030.00617.01
8.0.110.0070.00017.02
8.0.100.0000.00717.00
8.0.90.0050.00216.84
8.0.80.0080.01016.98
8.0.70.0000.00717.09
8.0.60.0000.00816.98
8.0.50.0000.00717.04
8.0.30.0110.00817.14
8.0.20.0080.01317.03
8.0.10.0000.00716.97
8.0.00.0220.01116.74
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0000.00916.48
7.4.290.0040.00416.64
7.4.280.0000.00816.52
7.4.270.0030.00316.57
7.4.260.0000.00613.24
7.4.250.0000.00716.59
7.4.240.0030.00516.61
7.4.230.0050.00316.52
7.4.220.0020.00516.51
7.4.210.0050.01116.62
7.4.200.0040.00416.46
7.4.130.0110.00816.38
7.4.120.0200.01416.52
7.4.110.0110.00916.43
7.4.100.0100.01116.38
7.4.90.0230.01316.44
7.4.80.0170.00516.48
7.4.70.0150.00516.14
7.4.60.0080.01116.34
7.4.50.0130.00616.40
7.4.40.0100.01016.37
7.4.30.0140.00916.20
7.4.20.0100.01116.22
7.4.10.0120.00916.28
7.4.00.0090.01216.49
7.3.330.0000.00716.42
7.3.320.0060.00013.14
7.3.310.0000.00716.26
7.3.300.0030.00316.36
7.3.290.0000.01516.35
7.3.260.0160.00716.53
7.3.250.0090.01216.41
7.3.240.0120.00716.35
7.3.230.0150.00516.28
7.3.220.0080.01016.46
7.3.210.0100.01016.42
7.3.200.0080.01316.25
7.3.190.0090.00916.30
7.3.180.0120.00916.44
7.3.170.0080.01116.31
7.3.160.0140.00516.23
7.3.150.0080.01816.15
7.3.140.0120.01016.43
7.3.130.0110.00816.38
7.3.120.0160.01116.48
7.3.110.0130.00916.45
7.3.100.0150.00516.38
7.3.90.0080.01516.30
7.3.80.0170.00416.17
7.3.70.0090.00916.21
7.3.60.0130.01216.32
7.3.50.0140.01116.25
7.3.40.0190.00616.31
7.3.30.0130.00716.32
7.3.20.0110.02516.14
7.3.10.0150.01216.32
7.3.00.0120.01016.29

preferences:
158.31 ms | 403 KiB | 5 Q