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; register_postsend_function(function() { restore_exception_handler(); restore_error_handler(); throw new $eh('Test'); }); } stack_exception_handler(function(){echo "handler 1 called!";}); stack_exception_handler(function(){echo "handler 2 called!";}); stack_exception_handler(function(){echo "handler 3 called!";});

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.0110.00716.88
8.3.50.0080.00821.21
8.3.40.0140.00018.96
8.3.30.0060.00918.80
8.3.20.0000.00720.16
8.3.10.0110.00321.90
8.3.00.0040.00421.82
8.2.180.0150.00618.29
8.2.170.0090.00622.96
8.2.160.0110.00419.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00821.12
8.2.120.0030.00526.35
8.2.110.0050.00520.94
8.2.100.0080.00318.03
8.2.90.0060.00317.97
8.2.80.0040.00418.19
8.2.70.0030.00617.63
8.2.60.0000.00818.16
8.2.50.0030.00518.09
8.2.40.0030.00622.32
8.2.30.0050.00219.54
8.2.20.0000.00817.82
8.2.10.0040.00418.19
8.2.00.0030.00518.05
8.1.280.0070.00725.92
8.1.270.0140.00022.18
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.01222.54
8.1.230.0000.01220.85
8.1.220.0040.00417.76
8.1.210.0030.00518.89
8.1.200.0000.00917.23
8.1.190.0090.00017.25
8.1.180.0030.00518.10
8.1.170.0050.00318.71
8.1.160.0000.00820.74
8.1.150.0050.00219.06
8.1.140.0000.00819.54
8.1.130.0080.00017.61
8.1.120.0070.00017.47
8.1.110.0050.00317.44
8.1.100.0030.00517.52
8.1.90.0000.00917.51
8.1.80.0070.00017.40
8.1.70.0000.00717.43
8.1.60.0060.00317.56
8.1.50.0060.00317.47
8.1.40.0000.00717.53
8.1.30.0030.00517.66
8.1.20.0050.00317.54
8.1.10.0080.00017.53
8.1.00.0040.00417.51
8.0.300.0030.00320.03
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00717.28
8.0.260.0060.00017.21
8.0.250.0030.00317.02
8.0.240.0000.00716.92
8.0.230.0070.00017.05
8.0.220.0000.00816.84
8.0.210.0000.00716.99
8.0.200.0000.00717.09
8.0.190.0020.00517.02
8.0.180.0070.00017.04
8.0.170.0070.00316.86
8.0.160.0000.00717.07
8.0.150.0030.00316.86
8.0.140.0060.00316.96
8.0.130.0000.00613.39
8.0.120.0000.00816.95
8.0.110.0000.00716.95
8.0.100.0040.00416.83
8.0.90.0000.00716.93
8.0.80.0030.01216.98
8.0.70.0080.00017.03
8.0.60.0030.00617.04
8.0.50.0040.00417.03
8.0.30.0110.00617.28
8.0.20.0160.00417.40
8.0.10.0000.00716.93
8.0.00.0100.00916.74
7.4.330.0060.00016.89
7.4.320.0030.00316.59
7.4.300.0000.00816.56
7.4.290.0070.00016.55
7.4.280.0000.00716.49
7.4.270.0040.00416.39
7.4.260.0060.00316.55
7.4.250.0040.00416.52
7.4.240.0000.00716.51
7.4.230.0030.00316.62
7.4.220.0070.01716.55
7.4.210.0080.00916.63
7.4.200.0000.00716.50
7.4.160.0050.01016.66
7.4.150.0160.00917.40
7.4.140.0180.00417.86
7.4.130.0080.01016.50
7.4.120.0130.00716.51
7.4.110.0090.00916.62
7.4.100.0110.00616.48
7.4.90.0120.00616.60
7.4.80.0030.01519.39
7.4.70.0150.00016.59
7.4.60.0070.01016.50
7.4.50.0060.00916.80
7.4.40.0070.01016.58
7.4.30.0180.00316.55
7.4.00.0070.00715.10
7.3.330.0000.00613.22
7.3.320.0020.00313.40
7.3.310.0030.00316.28
7.3.300.0000.00716.25
7.3.290.0000.00716.26
7.3.280.0090.00916.41
7.3.270.0130.01017.40
7.3.260.0180.00016.59
7.3.250.0100.00716.41
7.3.240.0070.00916.46
7.3.230.0080.00916.39
7.3.210.0140.00316.56
7.3.200.0140.00319.39
7.3.190.0090.01216.47
7.3.180.0090.00916.58
7.3.170.0140.00316.38
7.3.160.0050.01016.63
7.3.120.0130.00014.82
7.3.110.0040.00714.84
7.3.100.0090.00615.02
7.3.90.0040.01114.88
7.3.80.0070.00714.91
7.3.70.0070.00714.77
7.3.60.0030.01314.86
7.3.50.0060.00914.74
7.3.40.0110.00314.73
7.3.30.0030.01014.86
7.3.20.0060.01016.82
7.3.10.0030.00716.49
7.3.00.0040.01116.84
7.2.330.0130.01016.45
7.2.320.0170.00716.35
7.2.310.0120.00916.70
7.2.300.0100.00616.29
7.2.290.0150.00616.54
7.2.240.0060.00915.00
7.2.230.0000.01414.68
7.2.220.0000.01714.95
7.2.210.0040.01115.11
7.2.200.0060.00615.06
7.2.190.0120.00315.11
7.2.180.0030.01014.78
7.2.170.0030.01415.02
7.2.160.0080.00814.82
7.2.150.0060.01016.96
7.2.140.0040.01416.76
7.2.130.0040.00716.95
7.2.120.0060.00917.00
7.2.110.0110.00017.06
7.2.100.0090.00616.96
7.2.90.0070.01016.96
7.2.80.0130.00316.84
7.2.70.0070.00716.85
7.2.60.0080.00816.92
7.2.50.0060.01016.89
7.2.40.0070.01017.04
7.2.30.0070.01116.93
7.2.20.0060.00616.95
7.2.10.0030.01316.86
7.2.00.0080.00818.10
7.1.330.0070.00715.96
7.1.320.0000.01215.79
7.1.310.0030.00615.71
7.1.300.0120.00316.01
7.1.290.0030.01015.67
7.1.280.0000.01715.76
7.1.270.0070.00315.62
7.1.260.0100.00315.70
7.1.250.0100.00315.80
7.1.200.0070.00015.97
7.1.100.0130.00317.96
7.1.70.0030.01217.30
7.1.60.0180.00719.40
7.1.50.0030.01716.86
7.1.00.0100.06722.42
7.0.200.0360.00914.62
7.0.60.0270.03319.80
7.0.50.0000.05017.85
7.0.40.0000.05720.09
7.0.30.0230.08720.39
7.0.20.0300.05720.10
7.0.10.0100.05020.25
7.0.00.0070.04020.14
5.6.280.0000.03720.84
5.6.210.0070.05720.63
5.6.200.0000.05718.19
5.6.190.0000.04720.67
5.6.180.0230.06320.63
5.6.170.0230.08020.71
5.6.160.0100.06720.52
5.6.150.0000.06318.25
5.6.140.0070.04018.23
5.6.130.0070.07718.17
5.6.120.0000.05721.02
5.6.110.0130.08021.13
5.6.100.0100.08721.01
5.6.90.0070.08321.01
5.6.80.0100.07320.42
5.5.350.0070.07320.47
5.5.340.0100.06318.02
5.5.330.0070.03720.28
5.5.320.0470.05020.24
5.5.310.0170.05020.27
5.5.300.0000.08718.08
5.5.290.0170.07018.04
5.5.280.0030.08020.66
5.5.270.0070.07720.74
5.5.260.0100.07020.77
5.5.250.0030.04020.56
5.5.240.0130.03320.35

preferences:
58.12 ms | 401 KiB | 5 Q