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 $eh('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.0070.01016.73
8.3.50.0120.00621.21
8.3.40.0120.00318.76
8.3.30.0140.00018.88
8.3.20.0040.00420.15
8.3.10.0070.00721.73
8.3.00.0040.00421.73
8.2.180.0070.01418.42
8.2.170.0030.01222.96
8.2.160.0100.01419.41
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.14
8.2.120.0040.00426.35
8.2.110.0030.00721.06
8.2.100.0120.00017.78
8.2.90.0080.00017.85
8.2.80.0040.00418.02
8.2.70.0060.00317.75
8.2.60.0000.00818.04
8.2.50.0040.00418.09
8.2.40.0000.00822.33
8.2.30.0070.00019.43
8.2.20.0040.00417.84
8.2.10.0000.00718.13
8.2.00.0040.00418.16
8.1.280.0040.01425.92
8.1.270.0070.00722.00
8.1.260.0070.00028.09
8.1.250.0030.00628.09
8.1.240.0030.00622.53
8.1.230.0120.00020.87
8.1.220.0050.00317.74
8.1.210.0030.00519.04
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0050.00318.50
8.1.160.0030.00520.68
8.1.150.0030.00619.03
8.1.140.0000.00717.25
8.1.130.0040.00417.49
8.1.120.0000.00717.39
8.1.110.0040.00417.42
8.1.100.0040.00417.40
8.1.90.0030.00617.46
8.1.80.0040.00317.35
8.1.70.0000.00817.45
8.1.60.0050.00317.36
8.1.50.0050.00317.37
8.1.40.0040.00417.38
8.1.30.0080.00017.49
8.1.20.0060.00317.57
8.1.10.0000.00917.45
8.1.00.0000.00817.42
8.0.300.0050.00219.94
8.0.290.0080.00016.75
8.0.280.0070.00018.40
8.0.270.0070.00016.89
8.0.260.0000.00617.22
8.0.250.0040.00416.95
8.0.240.0000.00717.09
8.0.230.0070.00016.91
8.0.220.0030.00316.98
8.0.210.0070.00016.99
8.0.200.0000.00617.00
8.0.190.0000.00716.89
8.0.180.0040.00316.93
8.0.170.0070.00317.03
8.0.160.0000.00717.09
8.0.150.0060.00316.96
8.0.140.0000.00816.96
8.0.130.0050.00013.41
8.0.120.0050.00316.90
8.0.110.0020.00516.90
8.0.100.0020.00516.78
8.0.90.0030.00517.02
8.0.80.0090.00616.94
8.0.70.0000.00717.00
8.0.60.0000.00717.01
8.0.50.0040.00416.81
8.0.30.0020.01417.16
8.0.20.0150.00817.40
8.0.10.0070.00016.98
8.0.00.0070.01116.82
7.4.330.0050.00016.84
7.4.320.0000.00616.59
7.4.300.0070.00016.37
7.4.290.0050.00316.55
7.4.280.0080.00016.43
7.4.270.0000.00716.42
7.4.260.0100.00016.41
7.4.250.0000.00816.52
7.4.240.0070.00016.47
7.4.230.0000.00716.55
7.4.220.0140.00316.66
7.4.210.0070.00816.43
7.4.200.0030.00316.57
7.4.160.0120.00316.50
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0090.00816.45
7.4.120.0050.01216.63
7.4.110.0150.00716.42
7.4.100.0100.01316.57
7.4.90.0080.01216.42
7.4.80.0210.00319.39
7.4.70.0080.00816.60
7.4.60.0090.00916.59
7.4.50.0070.01016.57
7.4.40.0060.01116.62
7.4.30.0120.00916.50
7.4.10.0040.01115.01
7.4.00.0050.01014.93
7.3.330.0000.00613.38
7.3.320.0030.00313.37
7.3.310.0030.00316.24
7.3.300.0030.00316.32
7.3.290.0040.00416.24
7.3.280.0110.00816.36
7.3.270.0070.01417.40
7.3.260.0170.00316.52
7.3.250.0080.00916.48
7.3.240.0040.01416.49
7.3.230.0150.00416.40
7.3.210.0100.00616.44
7.3.200.0090.00619.39
7.3.190.0050.01116.35
7.3.180.0120.00616.48
7.3.170.0140.00716.34
7.3.160.0100.00616.52
7.3.130.0040.01115.05
7.3.120.0000.01715.11
7.3.110.0120.00615.00
7.3.100.0070.00714.75
7.3.90.0100.00315.10
7.3.80.0040.00414.83
7.3.70.0040.00714.69
7.3.60.0060.00615.05
7.3.50.0030.01014.71
7.3.40.0000.01615.00
7.3.30.0060.00914.63
7.3.20.0040.00816.78
7.3.10.0060.00916.72
7.3.00.0040.01416.51
7.2.330.0160.00616.56
7.2.320.0080.01316.62
7.2.310.0070.01016.73
7.2.300.0060.01216.42
7.2.290.0100.00616.59
7.2.260.0090.00915.17
7.2.250.0060.01014.96
7.2.240.0030.00814.54
7.2.230.0050.00315.10
7.2.220.0040.00715.18
7.2.210.0060.00914.68
7.2.200.0030.00714.83
7.2.190.0060.00914.98
7.2.180.0060.00914.97
7.2.170.0040.00815.14
7.2.160.0030.01015.06
7.2.150.0040.00817.01
7.2.140.0070.00716.94
7.2.130.0080.00516.59
7.2.120.0030.01017.00
7.2.110.0000.01317.05
7.2.100.0060.00616.86
7.2.90.0000.01216.67
7.2.80.0080.00417.12
7.2.70.0120.00016.76
7.2.60.0040.00816.81
7.2.50.0120.00016.99
7.2.40.0040.00816.98
7.2.30.0040.00917.05
7.2.20.0040.00816.88
7.2.10.0080.00416.80
7.2.00.0040.00818.17
7.1.330.0100.00315.73
7.1.320.0030.01415.76
7.1.310.0000.01315.57
7.1.300.0040.00715.79
7.1.290.0030.01215.58
7.1.280.0030.00915.90
7.1.270.0060.01015.72
7.1.260.0000.01415.94
7.1.250.0080.00415.91
7.1.240.0090.00315.68
7.1.230.0000.01115.88
7.1.220.0070.00415.65
7.1.210.0040.00715.62
7.1.200.0090.00315.53
7.1.190.0060.00615.79
7.1.180.0060.00615.86
7.1.170.0000.01115.85
7.1.160.0040.00815.69
7.1.150.0070.00415.71
7.1.140.0070.00315.72
7.1.130.0070.00415.73
7.1.120.0110.00015.77
7.1.110.0100.00015.80
7.1.100.0040.00816.86
7.1.90.0040.00715.71
7.1.80.0070.00415.74
7.1.70.0070.00216.52
7.1.60.0050.01317.59
7.1.50.0090.00616.29
7.1.40.0030.00715.55
7.1.30.0070.00415.99
7.1.20.0080.00415.66
7.1.10.0050.00615.54
7.1.00.0050.04019.21
7.0.330.0030.01015.23
7.0.320.0000.01115.13
7.0.310.0070.00415.44
7.0.300.0070.00315.17
7.0.290.0070.00315.36
7.0.280.0030.00715.36
7.0.270.0100.00015.44
7.0.260.0040.00715.45
7.0.250.0030.00715.40
7.0.240.0100.00015.27
7.0.230.0030.00715.50
7.0.220.0070.00315.33
7.0.210.0040.00715.27
7.0.200.0270.00514.95
7.0.190.0070.00315.46
7.0.180.0030.00715.11
7.0.170.0050.00515.43
7.0.160.0030.00715.43
7.0.150.0100.00015.38
7.0.140.0030.00915.43
7.0.130.0070.00315.45
7.0.120.0000.01015.35
7.0.110.0030.00715.52
7.0.100.0070.00415.20
7.0.90.0030.00715.32
7.0.80.0050.00615.36
7.0.70.0070.00315.26
7.0.60.0080.04518.48
7.0.50.0080.03716.65
7.0.40.0100.04016.88
7.0.30.0170.04016.82
7.0.20.0170.02216.83
7.0.10.0070.03016.91
7.0.00.0030.04716.85
5.6.400.0040.00814.66
5.6.390.0030.01414.33
5.6.380.0000.01114.57
5.6.370.0000.01113.93
5.6.360.0030.00914.27
5.6.350.0040.00714.61
5.6.340.0040.00714.09
5.6.330.0030.00814.49
5.6.320.0040.00814.22
5.6.310.0040.00713.90
5.6.300.0060.00614.52
5.6.290.0060.00613.90
5.6.280.0030.01917.57
5.6.270.0020.01014.21
5.6.260.0000.01114.41
5.6.250.0040.00714.21
5.6.240.0110.00014.27
5.6.230.0020.00914.33
5.6.220.0000.01114.52
5.6.210.0050.04017.31
5.6.200.0020.04516.24
5.6.190.0030.02517.30
5.6.180.0190.02517.43
5.6.170.0250.03717.35
5.6.160.0050.04317.33
5.6.150.0050.03016.22
5.6.140.0060.04316.12
5.6.130.0060.03116.23
5.6.120.0070.03217.63
5.6.110.0100.04317.67
5.6.100.0080.03317.63
5.6.90.0080.03817.51
5.6.80.0120.03017.33
5.6.70.0030.01014.11
5.6.60.0060.00614.32
5.6.50.0000.01213.96
5.6.40.0070.00714.02
5.6.30.0070.00714.09
5.6.20.0030.01314.22
5.6.10.0070.00714.24
5.6.00.0000.00714.07
5.5.380.0040.00714.29
5.5.370.0050.00614.02
5.5.360.0040.00714.09
5.5.350.0060.04217.19
5.5.340.0070.03715.88
5.5.330.0060.02117.39
5.5.320.0320.03917.23
5.5.310.0070.02417.31
5.5.300.0050.03816.07
5.5.290.0020.03816.01
5.5.280.0080.03017.61
5.5.270.0070.02217.68
5.5.260.0070.03717.48
5.5.250.0100.01817.39
5.5.240.0050.01817.02
5.5.230.0030.00314.01
5.5.220.0050.00313.71
5.5.210.0060.00914.19
5.5.200.0100.00314.04
5.5.190.0030.00513.86
5.5.180.0060.00913.98
5.5.170.0040.00414.07
5.5.160.0040.00814.16
5.5.150.0040.01113.97
5.5.140.0030.00913.85
5.5.130.0090.00613.80
5.5.120.0000.00914.15
5.5.110.0060.00614.32
5.5.100.0030.00713.88
5.5.90.0040.00814.02
5.5.80.0040.00414.04
5.5.70.0030.01014.18
5.5.60.0000.00914.23
5.5.50.0070.01013.97
5.5.40.0000.01414.16
5.5.30.0030.01014.21
5.5.20.0030.00914.19
5.5.10.0070.00314.17
5.5.00.0030.01314.00

preferences:
53.03 ms | 401 KiB | 5 Q