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.40.0150.00618.72
8.3.30.0040.01118.90
8.3.20.0120.00620.21
8.3.10.0030.00523.53
8.3.00.0080.00020.42
8.2.170.0140.00718.94
8.2.160.0080.00822.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00722.26
8.2.110.0070.00422.16
8.2.100.0090.00318.03
8.2.90.0050.00319.40
8.2.80.0040.00418.16
8.2.70.0060.00317.38
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00817.97
8.2.30.0040.00718.01
8.2.20.0040.00417.72
8.2.10.0040.00419.69
8.2.00.0060.00317.69
8.1.270.0150.00423.74
8.1.260.0070.01426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0090.00319.01
8.1.220.0000.00717.78
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00217.63
8.1.180.0030.00618.10
8.1.170.0050.00318.61
8.1.160.0040.00422.01
8.1.150.0040.00418.70
8.1.140.0000.00717.41
8.1.130.0030.00317.89
8.1.120.0000.00717.37
8.1.110.0040.00417.46
8.1.100.0030.00517.38
8.1.90.0050.00317.30
8.1.80.0000.00717.32
8.1.70.0000.00717.41
8.1.60.0030.00517.48
8.1.50.0030.00617.45
8.1.40.0000.00817.50
8.1.30.0040.00417.60
8.1.20.0040.00417.67
8.1.10.0020.00517.51
8.1.00.0030.00617.49
8.0.300.0080.00018.77
8.0.290.0000.00717.05
8.0.280.0070.00018.40
8.0.270.0000.00916.84
8.0.260.0030.00316.75
8.0.250.0000.00617.01
8.0.240.0000.00716.96
8.0.230.0000.00716.89
8.0.220.0000.00716.84
8.0.210.0000.00716.75
8.0.200.0040.00417.07
8.0.190.0020.00517.02
8.0.180.0050.00216.88
8.0.170.0050.00316.98
8.0.160.0000.00816.96
8.0.150.0030.00316.93
8.0.140.0030.00516.89
8.0.130.0000.00613.48
8.0.120.0040.00416.93
8.0.110.0040.00417.03
8.0.100.0060.00316.92
8.0.90.0080.00017.09
8.0.80.0130.00317.02
8.0.70.0040.00417.07
8.0.60.0000.00716.82
8.0.50.0040.00417.00
8.0.30.0130.00717.13
8.0.20.0100.00817.40
8.0.10.0040.00417.12
8.0.00.0090.01116.78
7.4.330.0000.00515.00
7.4.320.0070.00016.53
7.4.300.0030.00316.49
7.4.290.0030.00616.56
7.4.280.0000.00816.39
7.4.270.0000.01116.47
7.4.260.0080.00016.42
7.4.250.0050.00316.55
7.4.240.0030.00516.52
7.4.230.0030.00316.42
7.4.220.0170.01016.54
7.4.210.0110.00916.57
7.4.200.0030.00316.49
7.4.190.0030.00516.48
7.4.160.0000.01516.69
7.4.150.0070.01017.40
7.4.140.0070.01017.86
7.4.130.0060.01216.67
7.4.120.0080.00916.57
7.4.110.0140.00316.70
7.4.100.0110.01116.47
7.4.90.0120.00616.50
7.4.80.0030.01516.55
7.4.70.0120.00616.62
7.4.60.0100.00716.57
7.4.50.0030.00516.47
7.4.40.0060.00922.77
7.4.30.0090.00616.54
7.4.10.0100.00814.79
7.4.00.0080.00815.04
7.3.330.0060.00013.45
7.3.320.0050.00013.25
7.3.310.0040.00416.54
7.3.300.0040.00416.27
7.3.290.0040.01516.34
7.3.280.0080.01116.33
7.3.270.0110.00817.40
7.3.260.0130.00316.56
7.3.250.0090.00816.46
7.3.240.0060.01216.48
7.3.230.0100.00716.41
7.3.210.0110.00616.38
7.3.200.0140.00319.39
7.3.190.0080.00616.47
7.3.180.0060.00916.54
7.3.170.0030.02016.53
7.3.160.0160.00016.53
7.3.130.0090.00714.74
7.3.120.0050.01114.94
7.3.110.0100.00714.81
7.3.100.0020.01014.89
7.3.90.0050.00814.82
7.3.80.0040.00914.75
7.3.70.0040.00814.73
7.3.60.0050.00914.80
7.3.50.0050.00814.82
7.3.40.0060.00714.72
7.3.30.0090.00614.73
7.3.20.0080.00616.51
7.3.10.0050.00916.56
7.3.00.0040.00916.60
7.2.330.0070.01116.58
7.2.320.0180.00916.60
7.2.310.0090.00916.65
7.2.300.0060.01116.66
7.2.290.0060.00916.42
7.2.260.0090.00714.96
7.2.250.0040.01415.01
7.2.240.0090.00715.02
7.2.230.0040.01115.12
7.2.220.0090.00615.00
7.2.210.0060.00814.99
7.2.200.0060.00714.97
7.2.190.0080.00514.89
7.2.180.0050.01014.98
7.2.170.0040.01014.98
7.2.160.0010.01414.98
7.2.150.0070.00916.76
7.2.140.0040.00816.86
7.2.130.0050.01016.79
7.2.120.0080.00716.89
7.2.110.0090.00616.95
7.2.100.0030.00816.69
7.2.90.0040.00816.70
7.2.80.0050.00616.78
7.2.70.0070.00716.68
7.2.60.0060.00816.87
7.2.50.0030.01116.96
7.2.40.0060.00816.80
7.2.30.0080.00716.87
7.2.20.0060.00716.75
7.2.10.0100.00516.86
7.2.00.0030.01116.88
7.1.330.0060.01015.78
7.1.320.0070.00615.88
7.1.310.0050.00715.94
7.1.300.0060.00815.77
7.1.290.0050.00715.75
7.1.280.0060.00915.68
7.1.270.0050.00615.79
7.1.260.0040.00815.74
7.1.250.0030.01115.73
7.1.240.0040.01015.74
7.1.230.0070.00415.88
7.1.220.0040.00615.86
7.1.210.0030.01215.66
7.1.200.0050.00615.75
7.1.190.0020.01215.76
7.1.180.0060.00715.80
7.1.170.0060.00615.67
7.1.160.0040.01015.76
7.1.150.0060.00615.86
7.1.140.0050.00715.83
7.1.130.0040.01015.79
7.1.120.0040.00815.81
7.1.110.0030.00915.89
7.1.100.0070.00415.94
7.1.90.0050.00915.88
7.1.80.0020.01215.88
7.1.70.0070.00816.13
7.1.60.0070.00816.66
7.1.50.0070.01016.15
7.1.40.0060.00815.68
7.1.30.0090.00315.65
7.1.20.0060.00615.55
7.1.10.0030.01015.62
7.1.00.0090.02317.40
7.0.330.0080.00515.34
7.0.320.0040.00715.44
7.0.310.0040.00715.28
7.0.300.0040.00715.36
7.0.290.0060.00515.40
7.0.280.0020.01115.30
7.0.270.0030.00515.34
7.0.260.0070.00815.19
7.0.250.0050.00915.24
7.0.240.0070.00815.40
7.0.230.0030.01015.52
7.0.220.0050.00915.47
7.0.210.0050.00915.30
7.0.200.0040.00715.75
7.0.190.0090.00615.47
7.0.180.0040.00715.42
7.0.170.0060.00715.48
7.0.160.0070.00315.24
7.0.150.0060.00715.39
7.0.140.0050.02317.10
7.0.130.0060.00815.32
7.0.120.0070.00615.42
7.0.110.0010.01315.20
7.0.100.0160.02816.41
7.0.90.0090.02116.55
7.0.80.0160.02016.48
7.0.70.0130.01916.57
7.0.60.0160.02616.55
7.0.50.0140.02016.63
7.0.40.0060.02615.04
7.0.30.0090.01615.06
7.0.20.0090.02515.14
7.0.10.0060.01714.90
7.0.00.0070.02315.17
5.6.400.0060.00614.36
5.6.390.0080.00614.57
5.6.380.0090.00414.40
5.6.370.0050.00714.52
5.6.360.0030.00814.38
5.6.350.0040.00814.45
5.6.340.0060.00614.42
5.6.330.0060.00714.47
5.6.320.0080.00614.43
5.6.310.0050.01014.55
5.6.300.0060.00814.42
5.6.290.0050.00814.46
5.6.280.0070.02416.06
5.6.270.0070.00514.55
5.6.260.0040.01014.52
5.6.250.0040.02616.01
5.6.240.0070.02715.91
5.6.230.0050.01915.92
5.6.220.0090.02216.00
5.6.210.0060.03115.95
5.6.200.0050.02616.11
5.6.190.0020.03216.09
5.6.180.0090.02516.04
5.6.170.0080.02415.97
5.6.160.0060.02015.99
5.6.150.0100.02316.06
5.6.140.0070.02516.14
5.6.130.0070.02215.98
5.6.120.0050.02916.17
5.6.110.0060.02116.04
5.6.100.0090.02415.81
5.6.90.0070.02616.06
5.6.80.0070.02515.95
5.6.70.0090.01215.74
5.6.60.0080.01915.72
5.6.50.0040.02115.78
5.6.40.0070.02415.84
5.6.30.0070.01715.78
5.6.20.0070.02215.92
5.6.10.0060.02315.88
5.6.00.0060.02515.86
5.5.380.0070.02215.77
5.5.370.0070.02315.88
5.5.360.0050.01915.82
5.5.350.0040.02715.81
5.5.340.0070.02515.82
5.5.330.0040.02816.00
5.5.320.0090.02216.00
5.5.310.0070.01915.99
5.5.300.0070.02215.95
5.5.290.0060.02715.90
5.5.280.0060.02115.73
5.5.270.0070.02515.87
5.5.260.0040.02915.89
5.5.250.0040.02615.83
5.5.240.0090.02315.78
5.5.230.0130.01815.72
5.5.220.0060.01915.73
5.5.210.0070.02115.71
5.5.200.0040.02015.74
5.5.190.0040.02915.71
5.5.180.0090.02415.65
5.5.170.0080.00814.15
5.5.160.0080.02015.73
5.5.150.0030.01515.68
5.5.140.0070.02415.78
5.5.130.0080.01815.58
5.5.120.0040.01815.79
5.5.110.0040.02415.75
5.5.100.0080.02315.65
5.5.90.0100.01515.70
5.5.80.0060.01615.63
5.5.70.0070.02015.59
5.5.60.0030.02615.51
5.5.50.0050.01715.74
5.5.40.0050.01615.66
5.5.30.0060.01815.67
5.5.20.0040.02815.78
5.5.10.0070.02415.68
5.5.00.0110.02315.73
5.4.450.0040.02314.01
5.4.440.0070.02213.96
5.4.430.0040.02213.93
5.4.420.0070.02313.92
5.4.410.0060.02213.86
5.4.400.0050.01713.88
5.4.390.0070.02113.89
5.4.380.0030.02513.88
5.4.370.0050.01913.78
5.4.360.0080.02213.72
5.4.350.0030.01813.83
5.4.340.0070.01913.84
5.4.330.0070.00611.95
5.4.320.0060.01413.66
5.4.310.0030.01113.78
5.4.300.0020.01413.80
5.4.290.0040.02413.81
5.4.280.0080.01513.67
5.4.270.0060.01913.79
5.4.260.0030.01613.72
5.4.250.0030.02013.83
5.4.240.0050.01613.79
5.4.230.0060.01513.75
5.4.220.0040.02513.81
5.4.210.0080.01913.80
5.4.200.0040.02513.79
5.4.190.0040.01713.82
5.4.180.0060.01413.77
5.4.170.0080.02413.81
5.4.160.0060.01813.80
5.4.150.0050.01513.70
5.4.140.0050.01913.15
5.4.130.0060.01813.09
5.4.120.0030.02413.14
5.4.110.0030.01313.08
5.4.100.0030.01513.15
5.4.90.0030.02013.10
5.4.80.0060.01813.13
5.4.70.0060.01713.02
5.4.60.0040.01413.09
5.4.50.0070.01713.09
5.4.40.0050.02113.02
5.4.30.0050.02213.17
5.4.20.0050.01313.18
5.4.10.0060.01913.15
5.4.00.0040.01812.93
5.3.290.0030.02312.64
5.3.280.0020.01612.58
5.3.270.0040.02812.62
5.3.260.0040.02412.55
5.3.250.0050.02112.52
5.3.240.0040.02112.51
5.3.230.0060.02112.45
5.3.220.0070.02012.47
5.3.210.0050.02512.50
5.3.200.0040.02212.43
5.3.190.0060.01612.50
5.3.180.0040.01912.56
5.3.170.0050.01612.52
5.3.160.0040.02212.50
5.3.150.0060.01912.50
5.3.140.0050.01912.54
5.3.130.0050.01612.49
5.3.120.0070.01912.49
5.3.110.0030.02312.45
5.3.100.0030.02112.31
5.3.90.0050.01712.31
5.3.80.0080.01612.30
5.3.70.0030.02012.23
5.3.60.0030.01812.29
5.3.50.0050.01912.31
5.3.40.0060.02012.33
5.3.30.0040.02312.29
5.3.20.0050.01912.29
5.3.10.0020.01612.17
5.3.00.0030.02112.16
5.2.170.0030.06711.20
5.2.160.0030.06011.28
5.2.150.0070.04711.07
5.2.140.0070.05011.16
5.2.130.0100.04311.16
5.2.120.0030.06311.09
5.2.110.0030.04011.19
5.2.100.0000.04311.12
5.2.90.0070.06011.09
5.2.80.0100.06011.02
5.2.70.0030.03711.17
5.2.60.0070.06311.11
5.2.50.0070.04310.92
5.2.40.0130.05710.88
5.2.30.0100.07310.88
5.2.20.0100.04310.91
5.2.10.0030.06010.77
5.2.00.0170.06310.73
5.1.60.0130.04710.55
5.1.50.0000.03310.55
5.1.40.0030.05710.55
5.1.30.0070.02710.55
5.1.20.0000.04310.55
5.1.10.0100.05010.55
5.1.00.0130.02710.55
5.0.50.0030.04710.55
5.0.40.0030.04310.55
5.0.30.0100.04010.55
5.0.20.0070.04010.55
5.0.10.0000.02710.55
5.0.00.0100.04310.55
4.4.90.0070.02710.55
4.4.80.0070.03010.55
4.4.70.0100.02710.55
4.4.60.0000.02310.55
4.4.50.0000.03710.55
4.4.40.0030.04710.55
4.4.30.0100.02710.55
4.4.20.0000.03710.55
4.4.10.0000.04010.55
4.4.00.0000.06010.55
4.3.110.0000.03710.55
4.3.100.0000.02710.55
4.3.90.0030.03310.55
4.3.80.0070.05010.55
4.3.70.0000.03710.55
4.3.60.0030.01710.55
4.3.50.0030.04010.55
4.3.40.0030.05310.55
4.3.30.0000.02310.55
4.3.20.0000.04010.55
4.3.10.0030.03310.55
4.3.00.0030.03010.55

preferences:
43.38 ms | 400 KiB | 5 Q