3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stack_exception_handler($eh) { static $ehs=array(); if (empty($ehs)) { set_exception_handler(function($ex)use(&$ehs){ foreach($ehs as $eh){ call_user_func($eh,$ex); } }); } $ehs[]=$eh; } stack_exception_handler(function(){echo "handler 1 called!";}); stack_exception_handler(function(){echo "handler 2 called!";}); stack_exception_handler(function(){echo "handler 3 called!";}); register_postsend_function(function() { restore_exception_handler(); restore_error_handler(); throw new Exception('Test'); });

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.70.0140.00016.63
8.3.60.0110.00416.61
8.3.50.0130.00821.16
8.3.40.0090.01618.96
8.3.30.0060.00918.56
8.3.20.0020.00520.16
8.3.10.0080.00021.77
8.3.00.0040.00423.62
8.2.190.0120.01216.67
8.2.180.0070.00718.54
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0100.00019.30
8.2.100.0000.01117.93
8.2.90.0040.00419.21
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0050.00318.09
8.2.40.0040.00422.32
8.2.30.0040.00419.47
8.2.20.0040.00417.73
8.2.10.0000.00818.20
8.2.00.0070.00018.06
8.1.280.0040.01125.92
8.1.270.0160.00322.04
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.45
8.1.230.0040.00717.70
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.01017.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0050.00318.55
8.1.160.0000.00720.76
8.1.150.0040.00419.02
8.1.140.0030.00519.51
8.1.130.0030.00317.60
8.1.120.0000.00717.37
8.1.110.0040.00417.50
8.1.100.0000.00717.45
8.1.90.0080.00017.29
8.1.80.0000.00717.46
8.1.70.0030.00317.39
8.1.60.0060.00317.59
8.1.50.0030.00617.50
8.1.40.0040.00417.50
8.1.30.0050.00317.58
8.1.20.0040.00417.68
8.1.10.0070.00017.58
8.1.00.0000.00917.45
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0080.00018.47
8.0.270.0030.00317.35
8.0.260.0000.00817.28
8.0.250.0000.00717.06
8.0.240.0080.00016.93
8.0.230.0030.00317.03
8.0.220.0040.00416.95
8.0.210.0040.00416.96
8.0.200.0040.00417.00
8.0.190.0040.00417.03
8.0.180.0020.00517.02
8.0.170.0030.00616.89
8.0.160.0000.00716.97
8.0.150.0040.00416.96
8.0.140.0090.00016.96
8.0.130.0050.00013.37
8.0.120.0000.00816.88
8.0.110.0000.00716.98
8.0.100.0030.00516.99
8.0.90.0000.00716.96
8.0.80.0090.00917.02
8.0.70.0050.00317.04
8.0.60.0070.00016.86
8.0.50.0040.00417.01
8.0.30.0080.01117.15
8.0.20.0130.00817.40
8.0.10.0000.00717.02
8.0.00.0090.00816.85
7.4.330.0000.00616.72
7.4.320.0060.00016.43
7.4.300.0030.00616.57
7.4.290.0070.00016.60
7.4.280.0000.00716.63
7.4.270.0060.00316.55
7.4.260.0040.00416.54
7.4.250.0000.00816.49
7.4.240.0050.00216.43
7.4.230.0030.00316.65
7.4.220.0100.00716.55
7.4.210.0160.00016.74
7.4.200.0070.00016.70
7.4.160.0100.00616.70
7.4.150.0120.00617.40
7.4.140.0060.01717.86
7.4.130.0100.00716.52
7.4.120.0110.00516.66
7.4.110.0030.01616.52
7.4.100.0040.01516.40
7.4.90.0040.01516.47
7.4.80.0140.00319.39
7.4.70.0030.01316.33
7.4.60.0100.00716.57
7.4.50.0070.00716.31
7.4.40.0140.00316.69
7.4.30.0110.01116.46
7.4.00.0060.00814.92
7.3.330.0000.00513.32
7.3.320.0050.00013.23
7.3.310.0000.00716.29
7.3.300.0030.00316.26
7.3.290.0100.00416.37
7.3.280.0090.01016.40
7.3.270.0180.00617.40
7.3.260.0040.01316.46
7.3.250.0100.01116.61
7.3.240.0110.00916.70
7.3.230.0090.01316.39
7.3.210.0100.00716.70
7.3.200.0130.01019.39
7.3.190.0070.01116.70
7.3.180.0090.00916.39
7.3.170.0100.01016.51
7.3.160.0170.00016.51
7.3.10.0000.01316.55
7.3.00.0120.00316.45
7.2.330.0060.01016.54
7.2.320.0060.01216.68
7.2.310.0100.01016.75
7.2.300.0130.00316.59
7.2.290.0070.01016.76
7.2.130.0120.00316.70
7.2.120.0060.00316.71
7.2.110.0090.00916.93
7.2.100.0030.01116.96
7.2.90.0030.01316.73
7.2.80.0070.00416.75
7.2.70.0100.00717.12
7.2.60.0110.00516.85
7.2.50.0000.01416.89
7.2.40.0070.00316.98
7.2.30.0070.00716.87
7.2.20.0060.01216.90
7.2.10.0000.01316.67
7.2.00.0080.00518.23
7.1.250.0000.01115.53
7.1.200.0060.00816.00
7.1.100.0080.01118.27
7.1.70.0000.00817.15
7.1.60.0070.01719.40
7.1.50.0070.01416.96
7.1.00.0100.07022.36
7.0.200.0620.00314.82
7.0.60.0170.04320.02
7.0.50.0070.04017.88
7.0.40.0000.08320.26
7.0.30.0300.04020.26
7.0.20.0370.07320.06
7.0.10.0000.05020.30
7.0.00.0000.04720.08
5.6.280.0030.05021.16
5.6.210.0000.04320.62
5.6.200.0100.04718.28
5.6.190.0000.04320.33
5.6.180.0230.06720.64
5.6.170.0170.06320.54
5.6.160.0070.06020.61
5.6.150.0030.04018.25
5.6.140.0130.04318.13
5.6.130.0100.08318.23
5.6.120.0170.07321.02
5.6.110.0070.09320.97
5.6.100.0070.08321.14
5.6.90.0070.05321.01
5.6.80.0070.05020.42
5.5.350.0100.07720.36
5.5.340.0070.07017.98
5.5.330.0030.04320.57
5.5.320.0400.07020.32
5.5.310.0170.04720.27
5.5.300.0170.07017.98
5.5.290.0130.08017.96
5.5.280.0070.07720.82
5.5.270.0130.08020.81
5.5.260.0000.09320.74
5.5.250.0000.04320.67
5.5.240.0070.03320.25

preferences:
19.94 ms | 401 KiB | 5 Q