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(); }); } $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.0140.00718.68
8.3.50.0130.00821.26
8.3.40.0070.00718.58
8.3.30.0070.00718.67
8.3.20.0040.00420.13
8.3.10.0100.00021.79
8.3.00.0040.00421.95
8.2.180.0070.01018.07
8.2.170.0100.00722.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00020.97
8.2.120.0040.00426.35
8.2.110.0060.00319.39
8.2.100.0000.01117.75
8.2.90.0040.00417.73
8.2.80.0000.00718.02
8.2.70.0060.00317.50
8.2.60.0000.00717.93
8.2.50.0040.00418.09
8.2.40.0040.00422.15
8.2.30.0000.00819.38
8.2.20.0050.00217.69
8.2.10.0060.00319.75
8.2.00.0040.00417.93
8.1.280.0000.01425.92
8.1.270.0150.00421.93
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00321.89
8.1.230.0080.00420.95
8.1.220.0040.00417.74
8.1.210.0000.00818.88
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0080.00018.36
8.1.160.0040.00420.70
8.1.150.0030.00319.02
8.1.140.0040.00419.43
8.1.130.0030.00317.69
8.1.120.0030.00317.30
8.1.110.0070.00017.37
8.1.100.0060.00317.31
8.1.90.0040.00417.42
8.1.80.0000.00717.33
8.1.70.0000.00717.29
8.1.60.0030.00517.56
8.1.50.0040.00417.52
8.1.40.0040.00417.50
8.1.30.0040.00417.53
8.1.20.0040.00417.64
8.1.10.0000.00817.53
8.1.00.0050.00217.43
8.0.300.0070.00019.98
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00717.27
8.0.260.0030.00317.17
8.0.250.0070.00017.02
8.0.240.0050.00316.92
8.0.230.0070.00017.01
8.0.220.0000.00716.98
8.0.210.0000.00717.03
8.0.200.0030.00317.03
8.0.190.0050.00517.07
8.0.180.0000.00817.00
8.0.170.0000.00916.97
8.0.160.0070.00016.93
8.0.150.0040.00416.91
8.0.140.0040.00416.91
8.0.130.0050.00013.38
8.0.120.0080.00016.89
8.0.110.0000.00716.93
8.0.100.0040.00416.77
8.0.90.0000.00716.85
8.0.80.0060.00916.91
8.0.70.0000.00716.82
8.0.60.0000.00716.91
8.0.50.0000.00716.94
8.0.30.0110.00617.13
8.0.20.0130.00717.40
8.0.10.0040.00416.87
8.0.00.0110.00916.76
7.4.330.0050.00016.66
7.4.320.0040.00416.46
7.4.300.0060.00316.50
7.4.290.0050.00316.34
7.4.280.0070.00016.46
7.4.270.0050.00316.55
7.4.260.0070.00016.36
7.4.250.0050.00316.43
7.4.240.0030.00316.47
7.4.230.0000.00716.45
7.4.220.0070.01116.42
7.4.210.0050.01516.51
7.4.200.0070.00016.39
7.4.160.0030.01416.52
7.4.150.0160.00017.40
7.4.140.0130.01117.86
7.4.130.0060.01016.51
7.4.120.0130.00316.58
7.4.110.0120.00916.66
7.4.100.0030.01416.52
7.4.90.0130.00716.60
7.4.80.0120.00919.39
7.4.70.0060.00916.36
7.4.60.0070.01016.59
7.4.50.0070.00716.27
7.4.40.0140.00316.46
7.4.30.0090.01216.59
7.4.00.0040.01115.02
7.3.330.0000.00613.37
7.3.320.0050.00013.21
7.3.310.0040.00416.40
7.3.300.0050.00216.24
7.3.290.0080.00016.20
7.3.280.0090.00916.39
7.3.270.0060.01217.40
7.3.260.0030.01416.71
7.3.250.0100.00816.48
7.3.240.0090.00716.49
7.3.230.0120.00916.39
7.3.210.0140.00316.59
7.3.200.0060.01019.39
7.3.190.0100.00616.57
7.3.180.0130.00316.56
7.3.170.0100.00716.68
7.3.160.0120.00316.43
7.3.00.0140.00316.64
7.2.330.0030.01816.40
7.2.320.0150.01516.39
7.2.310.0070.01016.79
7.2.300.0040.01416.66
7.2.290.0060.01516.73
7.2.130.0090.00916.78
7.2.120.0110.00816.83
7.2.110.0050.00916.77
7.2.100.0070.00916.86
7.2.90.0110.00716.72
7.2.80.0120.00716.79
7.2.70.0110.00716.89
7.2.60.0100.00916.74
7.2.50.0160.00416.88
7.2.40.0070.01216.92
7.2.30.0120.00816.82
7.2.20.0110.00816.79
7.2.10.0110.00816.71
7.2.00.0060.01217.71
7.1.250.0110.00815.76
7.1.240.0140.00315.60
7.1.230.0080.00815.54
7.1.220.0060.00715.64
7.1.210.0110.00515.69
7.1.200.0070.00915.67
7.1.190.0090.00515.59
7.1.180.0150.00015.59
7.1.170.0050.00915.73
7.1.160.0120.00315.70
7.1.150.0110.00515.60
7.1.140.0030.01015.61
7.1.130.0100.00815.74
7.1.120.0100.00615.47
7.1.110.0090.00515.76
7.1.100.0090.00616.35
7.1.90.0080.00715.52
7.1.80.0140.00215.86
7.1.70.0090.00416.21
7.1.60.0080.01116.85
7.1.50.0080.00816.19
7.1.40.0130.00715.73
7.1.30.0090.00815.70
7.1.20.0120.00715.44
7.1.10.0080.00515.77
7.1.00.0080.02917.78
7.0.330.0100.00515.18
7.0.320.0100.00315.13
7.0.310.0040.01115.29
7.0.300.0070.00915.17
7.0.290.0060.00615.32
7.0.280.0140.00315.20
7.0.270.0080.00715.25
7.0.260.0090.00415.18
7.0.250.0090.00815.17
7.0.240.0100.00515.39
7.0.230.0110.00915.22
7.0.220.0100.00615.33
7.0.210.0100.00515.13
7.0.200.0190.00515.06
7.0.190.0080.01015.32
7.0.180.0070.00715.27
7.0.170.0080.00815.31
7.0.160.0120.00515.13
7.0.150.0160.00215.22
7.0.140.0130.00315.26
7.0.130.0100.00615.38
7.0.120.0110.00615.22
7.0.110.0110.00515.33
7.0.100.0120.00615.20
7.0.90.0100.00715.18
7.0.80.0080.00715.41
7.0.70.0120.00615.42
7.0.60.0110.01617.26
7.0.50.0080.02116.23
7.0.40.0080.03215.61
7.0.30.0130.01815.64
7.0.20.0170.03215.49
7.0.10.0080.03215.68
7.0.00.0110.01615.49
5.6.380.0020.01114.17
5.6.370.0110.00714.15
5.6.360.0090.00714.02
5.6.350.0090.00614.08
5.6.340.0040.01414.20
5.6.330.0080.01114.35
5.6.320.0100.00914.11
5.6.310.0050.00813.91
5.6.300.0070.01014.10
5.6.290.0080.00914.43
5.6.280.0060.01716.27
5.6.270.0110.00514.19
5.6.260.0020.01013.92
5.6.250.0040.00713.98
5.6.240.0060.00814.18
5.6.230.0060.00813.86
5.6.220.0070.00713.80
5.6.210.0050.02216.25
5.6.200.0090.03015.41
5.6.190.0100.03216.17
5.6.180.0150.01716.18
5.6.170.0230.02716.29
5.6.160.0100.02016.19
5.6.150.0090.02015.65
5.6.140.0120.02515.55
5.6.130.0090.03515.49
5.6.120.0120.03416.63
5.6.110.0150.03216.49
5.6.100.0110.02016.47
5.6.90.0080.02316.29
5.6.80.0110.02916.12
5.6.70.0100.00713.83
5.6.60.0100.00614.08
5.6.50.0120.00214.10
5.6.40.0060.00814.11
5.6.30.0060.00813.83
5.6.20.0070.00514.09
5.6.10.0020.01214.09
5.6.00.0100.00513.89
5.5.380.0030.00511.04
5.5.370.0050.00611.04
5.5.360.0080.00011.11
5.5.350.0120.02514.16
5.5.340.0090.02713.42
5.5.330.0110.02814.12
5.5.320.0180.03114.27
5.5.310.0080.02214.15
5.5.300.0070.02813.42
5.5.290.0040.03413.44
5.5.280.0100.02314.31
5.5.270.0090.03114.41
5.5.260.0110.03014.42
5.5.250.0060.01614.30
5.5.240.0120.01114.05
5.5.230.0020.01111.07
5.5.220.0070.00311.04
5.5.210.0050.00611.07
5.5.200.0020.00811.04
5.5.190.0020.00611.04
5.5.180.0040.00811.04
5.5.170.0020.00811.10
5.5.160.0050.00511.04
5.5.150.0060.00311.06
5.5.140.0020.00711.04
5.5.130.0050.00511.04
5.5.120.0030.00711.04
5.5.110.0000.01011.04
5.5.100.0050.00511.04
5.5.90.0000.00911.10
5.5.80.0030.00611.04
5.5.70.0050.00411.10
5.5.60.0060.00511.04
5.5.50.0030.00511.04
5.5.40.0030.00311.04
5.5.30.0050.00511.13
5.5.20.0070.00411.11
5.5.10.0020.00611.04
5.5.00.0060.00111.04

preferences:
36.04 ms | 401 KiB | 5 Q