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);}}); register_postsend_function(function() { restore_exception_handler(); restore_error_handler(); throw new Exception('Test'); }); } $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!";});

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.00416.75
8.3.50.0080.00818.28
8.3.40.0070.01018.98
8.3.30.0110.00418.86
8.3.20.0070.00020.16
8.3.10.0130.00321.80
8.3.00.0050.00323.68
8.2.180.0100.01018.38
8.2.170.0110.00322.96
8.2.160.0110.00319.29
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0080.00020.99
8.2.120.0040.00426.35
8.2.110.0060.00319.24
8.2.100.0000.01118.04
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0030.00617.46
8.2.60.0040.00417.80
8.2.50.0100.00018.09
8.2.40.0030.00622.32
8.2.30.0070.00019.50
8.2.20.0000.00717.81
8.2.10.0000.00818.00
8.2.00.0030.00518.06
8.1.280.0170.00325.92
8.1.270.0040.01422.05
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0110.01122.06
8.1.230.0030.01017.83
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0040.00418.64
8.1.160.0070.00020.66
8.1.150.0070.00018.92
8.1.140.0000.00819.52
8.1.130.0030.00317.65
8.1.120.0030.00317.40
8.1.110.0040.00417.47
8.1.100.0040.00417.29
8.1.90.0040.00417.43
8.1.80.0050.00217.29
8.1.70.0030.00317.38
8.1.60.0030.00617.51
8.1.50.0060.00317.49
8.1.40.0050.00217.48
8.1.30.0030.00517.56
8.1.20.0040.00417.52
8.1.10.0060.00317.51
8.1.00.0070.00017.48
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0030.00318.33
8.0.270.0000.00717.17
8.0.260.0000.00617.27
8.0.250.0000.00717.05
8.0.240.0030.00617.02
8.0.230.0000.00816.99
8.0.220.0030.00316.96
8.0.210.0040.00417.02
8.0.200.0000.00816.91
8.0.190.0070.00017.00
8.0.180.0040.00416.95
8.0.170.0060.00316.82
8.0.160.0030.00317.01
8.0.150.0050.00316.85
8.0.140.0060.00316.90
8.0.130.0000.00513.43
8.0.120.0000.00916.95
8.0.110.0040.00316.88
8.0.100.0040.00417.04
8.0.90.0040.00416.80
8.0.80.0070.01816.91
8.0.70.0040.00416.77
8.0.60.0050.00216.96
8.0.50.0050.00317.01
8.0.30.0090.01117.00
8.0.20.0100.01017.40
8.0.10.0050.00216.96
8.0.00.0100.00916.72
7.4.330.0000.00516.85
7.4.320.0000.00616.47
7.4.300.0040.00416.60
7.4.290.0000.00716.60
7.4.280.0030.00616.49
7.4.270.0000.00816.48
7.4.260.0070.00016.45
7.4.250.0000.00816.42
7.4.240.0030.00316.47
7.4.230.0000.00716.48
7.4.220.0060.01716.41
7.4.210.0040.01616.52
7.4.200.0030.00316.42
7.4.160.0070.00716.34
7.4.150.0100.01717.40
7.4.140.0100.01217.86
7.4.130.0070.01016.56
7.4.120.0120.00816.57
7.4.110.0120.00916.41
7.4.100.0070.01016.50
7.4.90.0090.01516.60
7.4.80.0060.01519.39
7.4.70.0060.01016.42
7.4.60.0060.01016.68
7.4.50.0040.01116.48
7.4.40.0130.00316.59
7.4.30.0090.01516.66
7.4.10.0070.01015.07
7.4.00.0030.01414.97
7.3.330.0000.00513.24
7.3.320.0020.00313.16
7.3.310.0070.00016.23
7.3.300.0030.00316.29
7.3.290.0030.00316.27
7.3.280.0090.00916.41
7.3.270.0180.00617.40
7.3.260.0170.00716.64
7.3.250.0100.00816.43
7.3.240.0080.00916.45
7.3.230.0120.00616.58
7.3.210.0130.00316.49
7.3.200.0110.00819.39
7.3.190.0120.00616.72
7.3.180.0030.01316.38
7.3.170.0150.00416.58
7.3.160.0030.01316.73
7.3.130.0060.01314.75
7.3.120.0120.00615.16
7.3.110.0090.00914.76
7.3.100.0080.00414.83
7.3.90.0060.01314.93
7.3.80.0070.00714.87
7.3.70.0090.00014.97
7.3.60.0080.00414.80
7.3.50.0120.00614.80
7.3.40.0040.01414.64
7.3.30.0070.00714.68
7.3.20.0070.01016.58
7.3.10.0140.00616.66
7.3.00.0080.00616.39
7.2.330.0110.00816.82
7.2.320.0230.00316.72
7.2.310.0200.00316.73
7.2.300.0130.00716.53
7.2.290.0030.01416.71
7.2.260.0120.00915.12
7.2.250.0030.01615.30
7.2.240.0000.01214.96
7.2.230.0030.01315.18
7.2.220.0030.01014.93
7.2.210.0030.01215.11
7.2.200.0090.00614.82
7.2.190.0060.01314.97
7.2.180.0070.01014.97
7.2.170.0000.01315.12
7.2.160.0060.01314.92
7.2.150.0000.01816.91
7.2.140.0080.00816.85
7.2.130.0110.00716.73
7.2.120.0030.01216.86
7.2.110.0070.01016.81
7.2.100.0020.01216.77
7.2.90.0070.00816.79
7.2.80.0090.00416.83
7.2.70.0090.00516.77
7.2.60.0060.00816.87
7.2.50.0060.00917.02
7.2.40.0030.01116.87
7.2.30.0080.00316.79
7.2.20.0050.01116.94
7.2.10.0050.01316.67
7.2.00.0070.00917.71
7.1.330.0080.00415.70
7.1.320.0150.00316.02
7.1.310.0030.00915.65
7.1.300.0100.01015.86
7.1.290.0060.01315.97
7.1.280.0000.01115.55
7.1.270.0070.01015.77
7.1.260.0030.01015.98
7.1.250.0090.00615.85
7.1.240.0130.00315.62
7.1.230.0090.00615.62
7.1.220.0060.00615.79
7.1.210.0140.00315.72
7.1.200.0060.00615.64
7.1.190.0090.00615.98
7.1.180.0030.01115.86
7.1.170.0100.00015.75
7.1.160.0000.01315.72
7.1.150.0000.01315.73
7.1.140.0130.00315.86
7.1.130.0070.00715.64
7.1.120.0070.00715.82
7.1.110.0000.01315.88
7.1.100.0070.01016.99
7.1.90.0100.00615.73
7.1.80.0060.00915.85
7.1.70.0050.00416.53
7.1.60.0060.01117.52
7.1.50.0050.00916.21
7.1.40.0060.00815.56
7.1.30.0070.01015.73
7.1.20.0120.00315.63
7.1.10.0120.00015.45
7.1.00.0040.04419.00
7.0.330.0090.00615.08
7.0.320.0000.00915.52
7.0.310.0030.01015.40
7.0.300.0040.01415.45
7.0.290.0030.01015.28
7.0.280.0100.00715.39
7.0.270.0060.00615.38
7.0.260.0030.01315.14
7.0.250.0090.00315.44
7.0.240.0080.00615.44
7.0.230.0000.01315.23
7.0.220.0040.00415.25
7.0.210.0100.00015.33
7.0.200.0130.00515.05
7.0.190.0030.00915.25
7.0.180.0040.00815.39
7.0.170.0000.01515.35
7.0.160.0070.00715.16
7.0.150.0000.01215.30
7.0.140.0000.00815.38
7.0.130.0000.01315.44
7.0.120.0080.00615.42
7.0.110.0030.00915.58
7.0.100.0000.00915.54
7.0.90.0040.00815.50
7.0.80.0060.00615.38
7.0.70.0090.00315.38
7.0.60.0150.04118.57
7.0.50.0050.04016.66
7.0.40.0030.02716.88
7.0.30.0100.04916.65
7.0.20.0250.03816.65
7.0.10.0070.03816.71
7.0.00.0080.04516.77
5.6.400.0050.00714.69
5.6.390.0040.00814.15
5.6.380.0070.00713.87
5.6.370.0060.00614.11
5.6.360.0070.00714.33
5.6.350.0060.00614.16
5.6.340.0040.01114.44
5.6.330.0030.01014.26
5.6.320.0000.01214.57
5.6.310.0030.00914.33
5.6.300.0060.00614.32
5.6.290.0070.00714.20
5.6.280.0050.02017.67
5.6.270.0110.00014.23
5.6.260.0060.00613.93
5.6.250.0030.01414.58
5.6.240.0060.01314.30
5.6.230.0030.01014.29
5.6.220.0000.00814.32
5.6.210.0070.02417.55
5.6.200.0080.04016.07
5.6.190.0030.02517.35
5.6.180.0220.02617.28
5.6.170.0190.03817.34
5.6.160.0100.02217.40
5.6.150.0050.04516.28
5.6.140.0050.02816.34
5.6.130.0100.04316.25
5.6.120.0090.04317.62
5.6.110.0070.03517.68
5.6.100.0120.03317.63
5.6.90.0100.04117.55
5.6.80.0080.04017.39
5.6.70.0070.00314.36
5.6.60.0060.01013.88
5.6.50.0000.01514.18
5.6.40.0050.00514.25
5.6.30.0100.00314.11
5.6.20.0040.01114.22
5.6.10.0030.01014.36
5.6.00.0090.00014.26
5.5.380.0090.00514.17
5.5.370.0140.00414.19
5.5.360.0030.00614.01
5.5.350.0080.02817.11
5.5.340.0070.02716.13
5.5.330.0010.02717.21
5.5.320.0260.03117.26
5.5.310.0140.02617.15
5.5.300.0050.03815.99
5.5.290.0080.04515.94
5.5.280.0060.03317.66
5.5.270.0100.04517.67
5.5.260.0030.04817.57
5.5.250.0030.02317.21
5.5.240.0100.01417.27
5.5.230.0080.00413.91
5.5.220.0030.00914.14
5.5.210.0040.00413.99
5.5.200.0000.01314.15
5.5.190.0070.00414.20
5.5.180.0090.00014.29
5.5.170.0090.00314.33
5.5.160.0100.00314.17
5.5.150.0130.00013.95
5.5.140.0070.01013.81
5.5.130.0100.00714.21
5.5.120.0030.00614.11
5.5.110.0080.00814.02
5.5.100.0040.00714.13
5.5.90.0040.01114.18
5.5.80.0040.00814.23
5.5.70.0030.00914.08
5.5.60.0090.00313.84
5.5.50.0000.00913.91
5.5.40.0100.00314.08
5.5.30.0000.01313.78
5.5.20.0070.01014.14
5.5.10.0000.00813.62
5.5.00.0070.01014.13

preferences:
63.95 ms | 400 KiB | 5 Q