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.40.0060.01318.80
8.3.30.0110.00319.02
8.3.20.0070.00020.35
8.3.10.0070.00023.49
8.3.00.0070.00023.66
8.2.170.0170.00022.96
8.2.160.0090.00619.51
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00421.07
8.2.120.0000.00826.35
8.2.110.0100.00020.94
8.2.100.0070.00418.03
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00818.16
8.2.50.0030.00518.10
8.2.40.0080.00022.27
8.2.30.0050.00319.45
8.2.20.0080.00017.80
8.2.10.0030.00518.13
8.2.00.0040.00418.24
8.1.270.0100.01022.07
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0000.00823.88
8.1.230.0060.00619.48
8.1.220.0000.00817.89
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00420.68
8.1.150.0040.00419.01
8.1.140.0040.00419.46
8.1.130.0030.00517.63
8.1.120.0040.00417.50
8.1.110.0000.00717.46
8.1.100.0040.00417.46
8.1.90.0050.00317.48
8.1.80.0040.00417.47
8.1.70.0000.00717.52
8.1.60.0030.00517.61
8.1.50.0000.00917.53
8.1.40.0030.00517.42
8.1.30.0040.00417.67
8.1.20.0030.00617.68
8.1.10.0000.00817.52
8.1.00.0060.00317.41
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0070.00018.51
8.0.270.0030.00317.41
8.0.260.0030.00317.27
8.0.250.0000.00716.94
8.0.240.0080.00017.02
8.0.230.0040.00417.00
8.0.220.0000.00716.93
8.0.210.0000.00716.95
8.0.200.0040.00417.07
8.0.190.0000.00816.91
8.0.180.0080.00016.89
8.0.170.0120.00017.02
8.0.160.0040.00417.09
8.0.150.0000.00716.94
8.0.140.0000.01016.93
8.0.130.0030.00313.40
8.0.120.0030.00517.02
8.0.110.0000.00716.99
8.0.100.0050.00316.88
8.0.90.0070.00016.86
8.0.80.0140.00716.93
8.0.70.0040.00416.87
8.0.60.0060.00316.88
8.0.50.0040.00416.93
8.0.30.0100.00517.12
8.0.20.0100.01017.40
8.0.10.0040.00416.99
8.0.00.0070.01216.84
7.4.330.0050.00016.85
7.4.320.0030.00316.52
7.4.300.0030.00516.63
7.4.290.0070.00016.43
7.4.280.0040.00416.62
7.4.270.0000.00816.63
7.4.260.0080.00016.65
7.4.250.0040.00416.50
7.4.240.0000.00716.62
7.4.230.0000.00716.72
7.4.220.0030.02016.52
7.4.210.0090.01016.59
7.4.200.0000.00716.52
7.4.160.0110.00816.55
7.4.150.0060.01217.40
7.4.140.0180.00517.86
7.4.130.0060.01016.70
7.4.120.0090.00916.71
7.4.110.0100.00716.63
7.4.100.0110.01416.61
7.4.90.0090.01216.60
7.4.80.0150.00819.39
7.4.70.0030.01316.71
7.4.60.0080.00816.49
7.4.50.0000.01416.59
7.4.40.0130.00316.48
7.4.30.0060.01716.56
7.4.00.0100.00714.79
7.3.330.0030.00313.37
7.3.320.0030.00313.21
7.3.310.0030.00316.21
7.3.300.0070.00016.44
7.3.290.0070.00016.43
7.3.280.0070.01216.43
7.3.270.0070.01317.40
7.3.260.0060.01316.45
7.3.250.0110.00716.52
7.3.240.0060.01116.69
7.3.230.0060.01216.39
7.3.210.0100.01016.69
7.3.200.0160.00919.39
7.3.190.0130.00616.59
7.3.180.0150.00616.49
7.3.170.0070.01316.56
7.3.160.0080.00816.63
7.3.10.0110.00716.27
7.3.00.0100.00316.47
7.2.330.0090.01616.82
7.2.320.0120.01416.53
7.2.310.0110.00616.39
7.2.300.0130.00316.79
7.2.290.0160.00616.80
7.2.130.0100.00716.11
7.2.120.0040.01116.46
7.2.110.0080.00816.65
7.2.100.0100.00316.61
7.2.90.0070.01016.68
7.2.80.0080.00916.54
7.2.70.0140.01016.64
7.2.60.0080.00916.70
7.2.50.0120.00916.65
7.2.40.0120.01216.47
7.2.30.0170.01116.68
7.2.20.0180.00716.52
7.2.10.0030.01316.31
7.2.00.0110.00917.83
7.1.250.0130.00315.50
7.1.200.0000.01215.90
7.1.100.0030.01018.20
7.1.70.0040.00417.34
7.1.60.0070.01719.40
7.1.50.0040.01117.04
7.1.00.0000.07722.37
7.0.200.0540.00314.73
7.0.60.0170.03721.69
7.0.50.0130.07317.89
7.0.40.0000.07320.24
7.0.30.0230.05720.30
7.0.20.0270.05020.07
7.0.10.0130.08020.22
7.0.00.0030.04320.14
5.6.280.0100.05320.97
5.6.210.0070.06720.52
5.6.200.0030.05018.16
5.6.190.0030.04320.77
5.6.180.0270.03320.55
5.6.170.0200.04720.57
5.6.160.0030.08720.71
5.6.150.0000.04018.18
5.6.140.0030.08318.17
5.6.130.0100.07718.29
5.6.120.0130.07021.15
5.6.110.0130.08021.02
5.6.100.0070.04021.05
5.6.90.0130.07021.11
5.6.80.0070.07320.52
5.5.350.0000.09020.45
5.5.340.0130.05317.99
5.5.330.0130.08020.43
5.5.320.0470.06320.24
5.5.310.0070.05020.51
5.5.300.0070.06717.97
5.5.290.0100.05718.02
5.5.280.0130.06320.98
5.5.270.0130.03320.88
5.5.260.0070.08320.98
5.5.250.0170.03020.51
5.5.240.0130.02720.13

preferences:
47.21 ms | 400 KiB | 5 Q