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 $ehs[0]('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.0140.00016.61
8.3.50.0140.00621.15
8.3.40.0120.00318.97
8.3.30.0070.00718.96
8.3.20.0040.00420.24
8.3.10.0140.00021.76
8.3.00.0030.00621.47
8.2.180.0100.01018.29
8.2.170.0110.00422.96
8.2.160.0070.00719.29
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00020.96
8.2.120.0000.00826.35
8.2.110.0070.00421.00
8.2.100.0070.00418.03
8.2.90.0040.00417.97
8.2.80.0040.00418.19
8.2.70.0100.00017.48
8.2.60.0040.00417.80
8.2.50.0000.00918.09
8.2.40.0020.00522.19
8.2.30.0050.00219.51
8.2.20.0030.00517.82
8.2.10.0080.00018.18
8.2.00.0040.00418.02
8.1.280.0070.01425.92
8.1.270.0070.00722.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.01022.46
8.1.230.0110.00021.03
8.1.220.0050.00317.79
8.1.210.0040.00418.96
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00818.58
8.1.160.0000.00820.78
8.1.150.0000.00719.03
8.1.140.0040.00419.57
8.1.130.0070.00017.70
8.1.120.0030.00317.54
8.1.110.0040.00417.48
8.1.100.0000.00817.45
8.1.90.0050.00317.38
8.1.80.0080.00017.40
8.1.70.0000.00717.43
8.1.60.0030.00617.65
8.1.50.0000.00817.41
8.1.40.0040.00417.46
8.1.30.0080.00017.56
8.1.20.0000.00817.50
8.1.10.0040.00417.52
8.1.00.0050.00217.56
8.0.300.0040.00419.85
8.0.290.0040.00416.88
8.0.280.0040.00418.33
8.0.270.0000.00717.18
8.0.260.0000.00817.21
8.0.250.0000.00617.00
8.0.240.0000.00717.04
8.0.230.0000.00716.91
8.0.220.0040.00416.92
8.0.210.0040.00417.01
8.0.200.0000.00616.92
8.0.190.0020.00517.02
8.0.180.0040.00416.91
8.0.170.0090.00016.98
8.0.160.0000.00717.04
8.0.150.0040.00416.77
8.0.140.0000.00816.81
8.0.130.0000.00513.43
8.0.120.0000.00916.91
8.0.110.0070.00016.88
8.0.100.0040.00417.04
8.0.90.0040.00416.84
8.0.80.0130.00317.03
8.0.70.0050.00217.03
8.0.60.0050.00216.83
8.0.50.0040.00416.85
8.0.30.0090.00817.14
8.0.20.0130.00717.40
8.0.10.0040.00416.89
8.0.00.0100.00716.72
7.4.330.0000.00516.81
7.4.320.0060.00016.51
7.4.300.0050.00216.61
7.4.290.0060.00016.50
7.4.280.0080.00016.61
7.4.270.0050.00316.50
7.4.260.0070.00016.52
7.4.250.0040.00416.58
7.4.240.0040.00416.55
7.4.230.0030.00316.41
7.4.220.0120.00616.63
7.4.210.0060.01016.55
7.4.200.0070.00016.71
7.4.160.0140.00616.65
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0110.00716.68
7.4.120.0080.01116.60
7.4.110.0140.00416.41
7.4.100.0140.00416.56
7.4.90.0070.01316.39
7.4.80.0030.01319.39
7.4.70.0120.00416.57
7.4.60.0100.00616.68
7.4.50.0090.00616.46
7.4.40.0070.01016.62
7.4.30.0080.01716.57
7.4.00.0030.01014.84
7.3.330.0020.00213.41
7.3.320.0000.00513.38
7.3.310.0070.00016.37
7.3.300.0040.00416.25
7.3.290.0070.00016.25
7.3.280.0100.00916.31
7.3.270.0180.00017.40
7.3.260.0190.00016.40
7.3.250.0040.01316.51
7.3.240.0070.01016.65
7.3.230.0130.00616.67
7.3.210.0100.00716.51
7.3.200.0080.00819.39
7.3.190.0120.00316.52
7.3.180.0060.01116.38
7.3.170.0080.00816.49
7.3.160.0100.00716.51
7.3.10.0090.00716.66
7.3.00.0060.00616.52
7.2.330.0170.00316.62
7.2.320.0180.02016.82
7.2.310.0100.00716.84
7.2.300.0030.01316.44
7.2.290.0120.00616.73
7.2.130.0090.00716.92
7.2.120.0030.01116.87
7.2.110.0120.00516.89
7.2.100.0080.00916.71
7.2.90.0060.00716.86
7.2.80.0050.00716.83
7.2.70.0060.00716.94
7.2.60.0060.00516.75
7.2.50.0080.00816.76
7.2.40.0030.00816.86
7.2.30.0060.00816.90
7.2.20.0070.00916.95
7.2.10.0050.01216.90
7.2.00.0050.00817.34
7.1.250.0050.00815.74
7.1.240.0110.00415.63
7.1.230.0090.00015.98
7.1.220.0070.00715.79
7.1.210.0090.00615.71
7.1.200.0090.00515.80
7.1.190.0070.00715.94
7.1.180.0070.00615.79
7.1.170.0000.01115.83
7.1.160.0130.00715.77
7.1.150.0060.00615.83
7.1.140.0030.01315.66
7.1.130.0060.00815.68
7.1.120.0040.01215.79
7.1.110.0060.00615.96
7.1.100.0100.00517.03
7.1.90.0030.01015.95
7.1.80.0110.00415.70
7.1.70.0020.01416.44
7.1.60.0040.01417.57
7.1.50.0050.01116.31
7.1.40.0000.01415.71
7.1.30.0090.00315.94
7.1.20.0070.00715.84
7.1.10.0040.01215.95
7.1.00.0070.04219.20
7.0.330.0080.00315.43
7.0.320.0040.00915.58
7.0.310.0040.00715.31
7.0.300.0040.01115.40
7.0.290.0040.01115.56
7.0.280.0100.00315.45
7.0.270.0030.01015.47
7.0.260.0040.01215.46
7.0.250.0070.00415.65
7.0.240.0030.01015.27
7.0.230.0040.01115.26
7.0.220.0030.00615.56
7.0.210.0030.00715.45
7.0.200.0350.00315.03
7.0.190.0030.00915.38
7.0.180.0000.01215.21
7.0.170.0110.00315.38
7.0.160.0050.00515.55
7.0.150.0000.01115.04
7.0.140.0000.01015.54
7.0.130.0060.00915.52
7.0.120.0000.00915.25
7.0.110.0070.00315.11
7.0.100.0030.01015.48
7.0.90.0030.00715.36
7.0.80.0000.01615.35
7.0.70.0030.01015.59
7.0.60.0190.01617.64
7.0.50.0060.04316.75
7.0.40.0050.04316.86
7.0.30.0150.03016.75
7.0.20.0320.03016.89
7.0.10.0070.04916.88
7.0.00.0050.02216.75
5.6.380.0030.01314.56
5.6.370.0000.01114.39
5.6.360.0070.00714.70
5.6.350.0040.00814.21
5.6.340.0030.00614.08
5.6.330.0000.01514.62
5.6.320.0060.00614.26
5.6.310.0060.00614.52
5.6.300.0110.00414.41
5.6.290.0100.00714.29
5.6.280.0020.02417.71
5.6.270.0090.00614.38
5.6.260.0120.00314.37
5.6.250.0070.00714.17
5.6.240.0070.01014.30
5.6.230.0150.00014.10
5.6.220.0040.01114.14
5.6.210.0100.01817.43
5.6.200.0030.03416.28
5.6.190.0050.02717.36
5.6.180.0150.02517.55
5.6.170.0150.02617.25
5.6.160.0100.04017.38
5.6.150.0050.02316.33
5.6.140.0080.03716.21
5.6.130.0090.03916.37
5.6.120.0100.03817.63
5.6.110.0050.03317.66
5.6.100.0050.02817.63
5.6.90.0030.04717.55
5.6.80.0080.04317.35
5.6.70.0070.00714.36
5.6.60.0000.01014.31
5.6.50.0100.00314.34
5.6.40.0080.00614.16
5.6.30.0000.01214.63
5.6.20.0070.00714.19
5.6.10.0030.01314.25
5.6.00.0000.00814.30
5.5.380.0060.00311.64
5.5.370.0060.00611.64
5.5.360.0030.00311.64
5.5.350.0030.04016.04
5.5.340.0060.03014.81
5.5.330.0070.03716.03
5.5.320.0270.04316.03
5.5.310.0070.02615.99
5.5.300.0100.02814.81
5.5.290.0040.04714.79
5.5.280.0050.03916.26
5.5.270.0100.02316.21
5.5.260.0080.04316.27
5.5.250.0000.02516.10
5.5.240.0060.01815.95
5.5.230.0040.00711.64
5.5.220.0060.00611.64
5.5.210.0030.00311.64
5.5.200.0000.00611.64
5.5.190.0060.00611.64
5.5.180.0000.00611.64
5.5.170.0000.01111.64
5.5.160.0060.00611.64
5.5.150.0030.01011.64
5.5.140.0060.00011.64
5.5.130.0030.00711.64
5.5.120.0000.00611.64
5.5.110.0030.00911.64
5.5.100.0030.00911.64
5.5.90.0000.00611.64
5.5.80.0060.00311.64
5.5.70.0030.00911.64
5.5.60.0030.00311.64
5.5.50.0000.01411.64
5.5.40.0090.00311.64
5.5.30.0070.00411.64
5.5.20.0070.00311.64
5.5.10.0060.00511.64
5.5.00.0030.00911.64

preferences:
54.6 ms | 401 KiB | 5 Q