3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*set_exception_handler(function ($e) { var_dump($e->getMessage()); throw 1; });*/ function unhandled(Exception $e) { // set dummy handler and return previous handler $handler = set_exception_handler(function ($e) { var_dump($e); throw 1; }); // use dummy handler when no original handler is available if ($handler === null) { $handler = set_exception_handler(null); } set_exception_handler(null); try { $handler($e); } catch (Exception $e) { var_dump('foo', $e); } echo 'die'; die(255); } echo 1; unhandled(new RuntimeException('fatal error')); echo 2;

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.4.120.0120.00820.57
8.4.110.0090.01122.36
8.4.100.0120.00717.94
8.4.90.0130.00817.94
8.4.80.0110.00918.14
8.4.70.0090.00717.94
8.4.60.0150.00618.92
8.4.50.0140.00617.79
8.4.40.0000.00818.07
8.4.30.0110.00020.52
8.4.20.0030.00619.85
8.4.10.0040.00422.39
8.3.250.0120.00618.61
8.3.240.0120.00816.56
8.3.230.0090.01016.59
8.3.220.0080.00717.22
8.3.210.0140.00616.67
8.3.200.0070.00816.64
8.3.190.0120.00719.07
8.3.180.0090.00618.60
8.3.170.0090.00917.00
8.3.160.0030.00516.59
8.3.150.0110.00818.63
8.3.140.0080.00016.74
8.3.130.0040.00418.56
8.3.120.0070.01318.83
8.3.110.0030.00720.94
8.3.100.0100.00716.76
8.3.90.0050.00326.77
8.3.80.0060.00319.36
8.3.70.0040.01116.88
8.3.60.0090.00918.56
8.3.50.0100.00524.51
8.3.40.0190.00018.54
8.3.30.0110.01118.67
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.290.0130.00522.22
8.2.280.0120.00818.43
8.2.270.0090.00916.70
8.2.260.0120.00618.71
8.2.250.0060.00318.47
8.2.240.0100.00019.02
8.2.230.0000.00822.58
8.2.220.0100.01024.06
8.2.210.0120.00426.77
8.2.200.0090.00018.88
8.2.190.0110.00818.54
8.2.180.0070.00725.92
8.2.170.0110.00418.99
8.2.160.0060.00922.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00026.35
8.2.110.0030.00619.25
8.2.100.0060.00617.91
8.2.90.0080.00019.79
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00417.63
8.2.50.0000.00818.05
8.2.40.0000.00718.09
8.2.30.0000.00818.11
8.2.20.0050.00317.95
8.2.10.0040.00419.31
8.2.00.0040.00419.25
8.1.330.0120.00818.68
8.1.320.0120.00616.31
8.1.310.0030.00618.42
8.1.300.0000.00816.44
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0000.00923.99
8.1.260.0070.00728.09
8.1.250.0070.00028.09
8.1.240.0040.00422.46
8.1.230.0070.00722.75
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00017.50
8.1.190.0050.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00718.59
8.1.160.0030.00518.89
8.1.150.0000.00818.91
8.1.140.0000.00918.95
8.1.130.0000.00720.15
8.1.120.0020.00517.46
8.1.110.0000.00717.53
8.1.100.0040.00417.48
8.1.90.0040.00417.46
8.1.80.0080.00317.47
8.1.70.0000.00717.38
8.1.60.0080.00017.64
8.1.50.0000.00917.52
8.1.40.0040.00717.49
8.1.30.0070.00317.56
8.1.20.0040.00417.55
8.1.10.0060.00317.51
8.1.00.0100.00017.38
8.0.300.0070.00020.06
8.0.290.0080.00016.75
8.0.280.0000.00820.12
8.0.270.0070.00018.02
8.0.260.0060.00020.08
8.0.250.0040.00416.89
8.0.240.0070.00016.83
8.0.230.0070.00016.93
8.0.220.0000.00816.79
8.0.210.0000.00716.79
8.0.200.0030.00316.89
8.0.190.0050.00317.02
8.0.180.0040.00416.96
8.0.170.0060.00316.97
8.0.160.0040.00416.93
8.0.150.0030.00516.95
8.0.140.0000.00816.97
8.0.130.0000.00613.42
8.0.120.0020.00516.97
8.0.110.0070.00016.77
8.0.100.0070.00016.78
8.0.90.0000.00816.89
8.0.80.0090.00616.94
8.0.70.0050.00316.79
8.0.60.0000.00716.96
8.0.50.0000.00716.85
8.0.30.0110.00717.33
8.0.20.0150.01116.95
8.0.10.0040.00416.94
8.0.00.0090.01216.74
7.4.330.0000.00515.55
7.4.320.0000.00616.49
7.4.300.0060.00016.57
7.4.290.0000.00716.55
7.4.280.0050.00216.35
7.4.270.0080.00016.46
7.4.260.0000.00513.25
7.4.250.0070.00016.54
7.4.240.0030.00316.51
7.4.230.0030.00316.30
7.4.220.0050.00216.65
7.4.210.0100.00516.47
7.4.200.0030.00316.46
7.4.130.0130.00516.38
7.4.120.0060.01116.61
7.4.110.0080.01516.49
7.4.100.0100.00716.52
7.4.90.0100.01016.20
7.4.80.0110.00716.41
7.4.70.0110.00716.37
7.4.60.0070.01216.55
7.4.50.0090.00916.39
7.4.40.0100.00716.45
7.4.30.0130.01016.73
7.4.20.0110.00916.46
7.4.10.0070.01116.69
7.4.00.0160.00516.69
7.3.330.0040.00416.43
7.3.320.0050.00013.37
7.3.310.0040.00416.37
7.3.300.0070.00016.21
7.3.290.0060.01116.35
7.3.280.0000.01416.36
7.3.260.0160.00316.55
7.3.230.0140.00316.59
7.3.210.0180.00616.43
7.3.200.0100.01016.61
7.3.190.0120.00616.48
7.3.180.0050.01516.42
7.3.170.0120.00616.55
7.3.160.0140.00316.43
7.3.150.0060.01216.39
7.3.140.0130.00416.53
7.3.130.0100.00716.41
7.3.120.0080.01116.36
7.3.110.0070.01116.55
7.3.100.0070.01016.49
7.3.90.0070.01116.56
7.3.80.0050.01316.26
7.3.70.0130.00616.41
7.3.60.0130.00716.43
7.3.50.0090.00916.41
7.3.40.0080.00816.39
7.3.30.0070.01116.49
7.3.20.0120.00718.20
7.3.10.0110.00618.39
7.3.00.0080.01218.23
7.2.330.0120.00816.48
7.2.320.0120.00616.83
7.2.310.0110.00716.51
7.2.300.0120.00616.65
7.2.290.0080.01316.77
7.2.280.0110.00716.52
7.2.270.0140.00416.59
7.2.260.0070.01116.49
7.2.250.0130.00416.53
7.2.240.0090.00916.63
7.2.230.0120.00616.79
7.2.220.0100.01016.46
7.2.210.0130.00316.80
7.2.200.0040.01616.57
7.2.190.0120.01116.55
7.2.180.0100.01016.61
7.2.170.0150.00316.69
7.2.160.0120.00616.62
7.2.150.0040.01518.48
7.2.140.0090.01416.89
7.2.130.0100.01018.54
7.2.120.0130.01618.53
7.2.110.0120.00918.55
7.2.100.0120.00818.47
7.2.90.0060.01518.43
7.2.80.0140.00518.47
7.2.70.0070.01318.42
7.2.60.0060.01218.42
7.2.50.0110.00718.68
7.2.40.0100.00718.43
7.2.30.0060.01918.57
7.2.20.0140.01118.44
7.2.10.0120.00818.47
7.2.00.0050.01318.40

preferences:
138.59 ms | 403 KiB | 5 Q