3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP // this makes ob_end_clean raise an error ob_end_flush(); class ExceptionHandler { public function __invoke (Exception $e) { // this triggers the custom error handler ob_end_clean(); } } // this must be a class, closure does not trigger segfault set_exception_handler(new ExceptionHandler()); // exception must be throwed from error handler. set_error_handler(function() { $e = new Exception; $e->_trace = debug_backtrace(); throw $e; }); // trigger error handler $a['waa']; ?>

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.00318.68
8.3.50.0070.01021.33
8.3.40.0120.00318.97
8.3.30.0070.00718.80
8.3.20.0050.00318.73
8.3.10.0040.00421.03
8.3.00.0090.00621.76
8.2.180.0120.00617.00
8.2.170.0040.01122.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00019.27
8.2.110.0060.00320.48
8.2.100.0120.00018.03
8.2.90.0000.00917.97
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00917.93
8.2.50.0000.00818.07
8.2.40.0060.00318.47
8.2.30.0040.00421.28
8.2.20.0040.00417.68
8.2.10.0040.00417.86
8.2.00.0000.00717.70
8.1.280.0120.00625.92
8.1.270.0080.00023.99
8.1.260.0030.01626.35
8.1.250.0060.00328.09
8.1.240.0110.00022.04
8.1.230.0030.00720.95
8.1.220.0040.00417.78
8.1.210.0000.00818.84
8.1.200.0060.00317.35
8.1.190.0040.00417.54
8.1.180.0000.00818.10
8.1.170.0000.00918.64
8.1.160.0040.00418.80
8.1.150.0080.00018.65
8.1.140.0080.00017.52
8.1.130.0050.00317.77
8.1.120.0000.00717.52
8.1.110.0070.00017.40
8.1.100.0040.00417.38
8.1.90.0040.00417.46
8.1.80.0040.00417.51
8.1.70.0000.00717.48
8.1.60.0030.00617.61
8.1.50.0030.00517.50
8.1.40.0040.00417.57
8.1.30.0000.00817.57
8.1.20.0080.00017.57
8.1.10.0040.00417.59
8.1.00.0000.00817.41
8.0.300.0040.00420.03
8.0.290.0040.00417.18
8.0.280.0000.00818.30
8.0.270.0000.00817.12
8.0.260.0000.00616.81
8.0.250.0000.00816.87
8.0.240.0030.00516.95
8.0.230.0040.00416.91
8.0.220.0070.00016.81
8.0.210.0020.00516.90
8.0.200.0040.00417.04
8.0.190.0040.00417.01
8.0.180.0080.00016.97
8.0.170.0060.00316.95
8.0.160.0020.00517.02
8.0.150.0000.00716.93
8.0.140.0050.00516.96
8.0.130.0030.00313.33
8.0.120.0050.00216.82
8.0.110.0000.00716.82
8.0.100.0000.00816.89
8.0.90.0000.00717.02
8.0.80.0070.01616.95
8.0.70.0040.00416.93
8.0.60.0020.00516.98
8.0.50.0040.00416.98
8.0.30.0130.00617.07
8.0.20.0080.01117.40
8.0.10.0000.00817.20
8.0.00.0120.00716.70
7.4.330.0050.00016.67
7.4.320.0000.00616.38
7.4.300.0040.00416.52
7.4.290.0040.00416.52
7.4.280.0040.00416.55
7.4.270.0030.00316.53
7.4.260.0000.00613.29
7.4.250.0040.00416.48
7.4.240.0000.00716.41
7.4.230.0060.00016.70
7.4.220.0120.00616.57
7.4.210.0120.00516.62
7.4.200.0030.00316.36
7.4.190.0030.00316.68
7.4.160.0070.00716.69
7.4.150.0030.01717.40
7.4.140.0060.01417.86
7.4.130.0100.00716.45
7.4.120.0080.00916.63
7.4.110.0170.00616.44
7.4.100.0160.00616.52
7.4.90.0130.00616.45
7.4.80.0040.01419.39
7.4.70.0100.00716.52
7.4.60.0100.01016.57
7.4.50.0030.00616.63
7.4.40.0080.00822.77
7.4.30.0090.00616.59
7.4.00.0090.00315.04
7.3.330.0030.00313.36
7.3.320.0060.00013.36
7.3.310.0000.00716.46
7.3.300.0040.00416.43
7.3.290.0030.01016.39
7.3.280.0110.00816.37
7.3.270.0110.00517.40
7.3.260.0080.01118.24
7.3.250.0140.00716.45
7.3.240.0090.00916.42
7.3.230.0120.00316.46
7.3.210.0160.00216.43
7.3.200.0130.01019.39
7.3.190.0070.01516.61
7.3.180.0120.00916.63
7.3.170.0110.00616.36
7.3.160.0090.00616.55
7.3.120.0070.00415.04
7.3.10.0070.00716.73
7.3.00.0040.01116.63
7.2.330.0100.00716.80
7.2.320.0100.01316.78
7.2.310.0040.01416.65
7.2.300.0100.01316.75
7.2.290.0060.01016.81
7.2.130.0000.01216.95
7.2.120.0040.00416.88
7.2.110.0070.00716.92
7.2.100.0160.00016.98
7.2.90.0120.00417.09
7.2.80.0000.01416.88
7.2.70.0080.00517.01
7.2.60.0020.01316.85
7.2.50.0040.01517.08
7.2.40.0000.01617.00
7.2.30.0070.00716.82
7.2.20.0060.00916.93
7.2.10.0070.00316.93
7.2.00.0040.00918.23
7.1.250.0100.00315.91
7.1.240.0040.00815.76
7.1.230.0030.00715.64
7.1.220.0030.01015.88
7.1.210.0080.00615.56
7.1.200.0050.00715.88
7.1.190.0000.00915.57
7.1.180.0040.00415.62
7.1.170.0120.00315.77
7.1.160.0100.00615.98
7.1.150.0130.00015.73
7.1.140.0030.01415.40
7.1.130.0070.00715.84
7.1.120.0080.00815.58
7.1.110.0030.01015.94
7.1.100.0030.01116.89
7.1.90.0000.00915.98
7.1.80.0100.00315.80
7.1.70.0000.01016.55
7.1.60.0100.01017.65
7.1.50.0050.01016.38
7.1.40.0070.00315.83
7.1.30.0060.00615.86
7.1.20.0000.01015.63
7.1.10.0030.00615.96
7.1.00.0030.02219.10
7.0.330.0080.00515.48
7.0.320.0000.01415.45
7.0.310.0040.01115.34
7.0.300.0090.00315.16
7.0.290.0030.01315.46
7.0.280.0000.00815.42
7.0.270.0090.00315.26
7.0.260.0000.00815.54
7.0.250.0030.00715.40
7.0.240.0070.00715.46
7.0.230.0130.00015.30
7.0.220.0060.00315.37
7.0.210.0040.00715.34
7.0.200.0050.00516.01
7.0.190.0060.00615.56
7.0.180.0100.00715.40
7.0.170.0030.01015.54
7.0.160.0070.00715.57
7.0.150.0120.00315.42
7.0.140.0050.03618.86
7.0.130.0030.01215.35
7.0.120.0030.01415.59
7.0.110.0090.04018.47
7.0.100.0050.04718.43
7.0.90.0050.04018.49
7.0.80.0030.04518.60
7.0.70.0030.04518.52
7.0.60.0010.04618.37
7.0.50.0080.04018.73
7.0.40.0030.04616.68
7.0.30.0060.03816.65
7.0.20.0020.03616.54
7.0.10.0010.04316.55
7.0.00.0020.04216.67
5.6.380.0060.01014.10
5.6.370.0030.01014.62
5.6.360.0000.01014.21
5.6.350.0040.01114.40
5.6.340.0080.00414.67
5.6.330.0060.00614.72
5.6.320.0070.00714.43
5.6.310.0100.00714.25
5.6.300.0030.01314.66
5.6.290.0090.00314.55
5.6.280.0110.03517.67
5.6.270.0040.01114.18
5.6.260.0040.04417.59
5.6.250.0090.03417.61
5.6.240.0070.04117.51
5.6.230.0090.04017.30
5.6.220.0070.03717.45
5.6.210.0100.03517.36
5.6.200.0090.04317.34
5.6.190.0030.04317.38
5.6.180.0050.04217.40
5.6.170.0060.03817.41
5.6.160.0050.02517.29
5.6.150.0010.03917.50
5.6.140.0070.04417.64
5.6.130.0070.04317.51
5.6.120.0030.04817.58
5.6.110.0040.04317.64
5.6.100.0050.03317.42
5.6.90.0080.03517.33
5.6.80.0040.04417.12
5.6.70.0070.04017.16
5.6.60.0070.04217.12
5.6.50.0050.03817.03
5.6.40.0080.02017.08
5.6.30.0040.04217.10
5.6.20.0080.04217.33
5.6.10.0050.02717.26
5.6.00.0030.04417.09
5.5.380.0050.03814.38
5.5.370.0090.04014.32
5.5.360.0070.04014.35
5.5.350.0050.04014.31
5.5.340.0050.04014.44
5.5.330.0050.04314.55
5.5.320.0020.03514.67
5.5.310.0030.03614.53
5.5.300.0060.01814.60
5.5.290.0020.02814.47
5.5.280.0090.04014.49
5.5.270.0060.04314.58
5.5.260.0090.03914.59
5.5.250.0060.04014.65
5.5.240.0080.03314.21
5.5.230.0070.03314.37
5.5.220.0050.03814.29
5.5.210.0030.04014.22
5.5.200.0030.04114.09
5.5.190.0000.04714.43
5.5.180.0070.04214.12
5.5.170.0040.00710.95
5.5.160.0090.02214.32
5.5.150.0050.03714.17
5.5.140.0060.03114.18
5.5.130.0030.04014.14
5.5.120.0010.04414.23
5.5.110.0080.03514.45
5.5.100.0020.04314.12
5.5.90.0000.02713.90
5.5.80.0030.04114.35
5.5.70.0050.04114.20
5.5.60.0040.04314.22
5.5.50.0000.02714.29
5.5.40.0030.03114.29
5.5.30.0030.04214.25
5.5.20.0080.03914.03
5.5.10.0080.03814.04
5.5.00.0030.04314.29
5.4.450.0060.04115.21
5.4.440.0070.04315.27
5.4.430.0030.04415.43
5.4.420.0070.03715.09
5.4.410.0070.03515.24
5.4.400.0070.04015.13
5.4.390.0080.04015.03
5.4.380.0030.03115.05
5.4.370.0080.03615.17
5.4.360.0080.03314.96
5.4.350.0050.04315.14
5.4.340.0050.04015.07
5.4.330.0000.01310.97
5.4.320.0100.03515.02
5.4.310.0030.04315.05
5.4.300.0090.03515.06
5.4.290.0040.03915.13
5.4.280.0020.04215.14
5.4.270.0030.02815.14
5.4.260.0020.04015.14
5.4.250.0030.02514.96
5.4.240.0050.04215.15
5.4.230.0050.04115.12
5.4.220.0000.04515.01
5.4.210.0060.03715.01
5.4.200.0020.04715.09
5.4.190.0050.03814.88
5.4.180.0040.04015.03
5.4.170.0100.03815.07
5.4.160.0030.03814.96
5.4.150.0070.03315.03
5.4.140.0030.03813.73
5.4.130.0100.03313.81
5.4.120.0050.03713.71
5.4.110.0030.03713.95
5.4.100.0020.04313.81
5.4.90.0070.03413.75
5.4.80.0040.02113.70
5.4.70.0030.02313.58
5.4.60.0020.04213.65
5.4.50.0070.03713.66
5.4.40.0030.04013.79
5.4.30.0030.03813.80
5.4.20.0050.03613.83
5.4.10.0030.03313.82
5.4.00.0020.02613.41
5.3.290.0030.04412.67
5.3.280.0050.03812.66
5.3.270.0030.04512.73
5.3.260.0000.04112.42
5.3.250.0010.03112.45
5.3.240.0020.03612.43
5.3.230.0030.02512.40
5.3.220.0070.02312.45
5.3.210.0050.04012.40
5.3.200.0040.03712.50
5.3.190.0030.04212.30
5.3.180.0010.03812.47
5.3.170.0030.03912.33
5.3.160.0090.03512.38
5.3.150.0030.03612.51
5.3.140.0010.02512.35
5.3.130.0030.03712.33
5.3.120.0050.04012.42
5.3.110.0050.03812.53
5.3.100.0060.03112.06
5.3.90.0030.03812.21
5.3.80.0030.03812.06
5.3.70.0050.03712.00
5.3.60.0020.04012.14
5.3.50.0080.03212.00
5.3.40.0020.03912.08
5.3.30.0000.03312.08
5.3.20.0020.03911.81
5.3.10.0030.03811.84
5.3.00.0070.03511.84
5.2.170.0030.03510.70
5.2.160.0090.02910.70
5.2.150.0020.03310.70
5.2.140.0050.02610.70
5.2.130.0010.03110.70
5.2.120.0050.03010.70
5.2.110.0050.02810.70
5.2.100.0000.03210.70
5.2.90.0050.02810.70
5.2.80.0050.03010.70
5.2.70.0020.03510.70
5.2.60.0020.03110.70
5.2.50.0080.02810.70
5.2.40.0030.03210.70
5.2.30.0080.02610.70
5.2.20.0050.01810.70
5.2.10.0030.02810.70
5.2.00.0090.02810.70
5.1.60.0000.03110.70
5.1.50.0050.02310.70
5.1.40.0040.02810.70
5.1.30.0020.03110.70
5.1.20.0040.02610.70
5.1.10.0040.02610.70
5.1.00.0020.03110.70
5.0.50.0030.02610.70
5.0.40.0000.02410.70
5.0.30.0020.03610.70
5.0.20.0020.01210.70
5.0.10.0000.01410.70
5.0.00.0010.01810.70
4.4.90.0030.02010.70
4.4.80.0020.01810.70
4.4.70.0030.01710.70
4.4.60.0070.01510.70
4.4.50.0030.01310.70
4.4.40.0020.02810.70
4.4.30.0020.01810.70
4.4.20.0020.01810.70
4.4.10.0060.01610.70
4.4.00.0050.02610.70
4.3.110.0050.01610.70
4.3.100.0050.00810.70
4.3.90.0020.01210.70
4.3.80.0020.01310.70
4.3.70.0020.01210.70
4.3.60.0030.00810.70
4.3.50.0020.00910.70
4.3.40.0000.01410.70
4.3.30.0030.00810.70
4.3.20.0020.00910.70
4.3.10.0030.00810.70
4.3.00.0000.01210.70

preferences:
46.48 ms | 401 KiB | 5 Q