3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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.70.0110.01116.88
8.3.60.0070.01416.61
8.3.50.0100.01022.91
8.3.40.0070.00718.97
8.3.30.0000.01519.04
8.3.20.0070.00020.39
8.3.10.0130.00323.66
8.3.00.0040.00417.62
8.2.180.0150.00616.50
8.2.170.0110.00422.96
8.2.160.0030.01020.43
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0140.00026.16
8.2.120.0070.00021.05
8.2.110.0000.00920.77
8.2.100.0060.00617.97
8.2.90.0030.00519.20
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0030.00617.93
8.2.50.0060.00318.10
8.2.40.0040.00419.48
8.2.30.0040.00419.50
8.2.20.0080.00017.89
8.2.10.0000.00718.13
8.2.00.0040.00417.81
8.1.280.0070.00725.92
8.1.270.0040.01223.84
8.1.260.0110.00426.35
8.1.250.0140.00428.09
8.1.240.0030.00722.62
8.1.230.0040.00717.89
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0080.00017.36
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0040.00418.82
8.1.150.0000.00718.88
8.1.140.0040.00417.46
8.1.130.0070.00017.77
8.1.120.0040.00417.38
8.1.110.0020.00517.47
8.1.100.0000.00817.43
8.1.90.0050.00217.33
8.1.80.0040.00417.51
8.1.70.0000.00717.48
8.1.60.0050.00317.59
8.1.50.0040.00417.46
8.1.40.0000.00717.48
8.1.30.0030.00517.61
8.1.20.0040.00417.62
8.1.10.0070.00017.60
8.1.00.0050.00317.46
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0030.00317.20
8.0.260.0030.00317.21
8.0.250.0030.00316.88
8.0.240.0030.00316.99
8.0.230.0000.00716.79
8.0.220.0000.00816.87
8.0.210.0050.00316.95
8.0.200.0040.00416.89
8.0.190.0000.00716.93
8.0.180.0040.00416.96
8.0.170.0050.00316.85
8.0.160.0040.00416.93
8.0.150.0030.00316.79
8.0.140.0000.00716.93
8.0.130.0000.00613.45
8.0.120.0000.00716.84
8.0.110.0040.00416.86
8.0.100.0050.00316.99
8.0.90.0000.00716.83
8.0.80.0110.00517.02
8.0.70.0000.00716.79
8.0.60.0000.00816.78
8.0.50.0050.00317.02
8.0.30.0150.00817.18
8.0.20.0110.01517.40
8.0.10.0000.00717.11
8.0.00.0090.00916.84
7.4.330.0000.00615.00
7.4.320.0060.00016.62
7.4.300.0000.00616.41
7.4.290.0030.00316.62
7.4.280.0000.00916.59
7.4.270.0070.00016.52
7.4.260.0030.00516.60
7.4.250.0000.00816.34
7.4.240.0020.00516.63
7.4.230.0000.00716.71
7.4.220.0090.00916.64
7.4.210.0110.00316.50
7.4.200.0040.00316.69
7.4.160.0070.01016.48
7.4.150.0060.01217.40
7.4.140.0090.00817.86
7.4.130.0120.00416.52
7.4.120.0100.01116.57
7.4.110.0090.00916.58
7.4.100.0040.01916.45
7.4.90.0200.00516.58
7.4.80.0000.01919.39
7.4.70.0200.00316.62
7.4.60.0100.01316.33
7.4.50.0030.00516.36
7.4.40.0040.01216.47
7.4.30.0040.01116.58
7.4.00.0030.01314.84
7.3.330.0060.00013.44
7.3.320.0000.00613.27
7.3.310.0060.00016.47
7.3.300.0040.00416.39
7.3.290.0080.00716.26
7.3.280.0110.00716.37
7.3.270.0220.00017.40
7.3.260.0130.00916.44
7.3.250.0100.00716.47
7.3.240.0110.00816.54
7.3.230.0090.01216.48
7.3.210.0060.01116.45
7.3.200.0090.00619.39
7.3.190.0090.00916.46
7.3.180.0000.02016.57
7.3.170.0100.00616.41
7.3.160.0130.00316.48
7.3.120.0060.00914.64
7.3.110.0100.00715.01
7.3.100.0060.00914.85
7.3.90.0120.00314.98
7.3.80.0090.00614.95
7.3.70.0030.01214.80
7.3.60.0030.01414.84
7.3.50.0030.00914.92
7.3.40.0090.00614.75
7.3.30.0070.00714.83
7.3.20.0060.00616.85
7.3.10.0050.00516.86
7.3.00.0060.00816.89
7.2.330.0060.01216.72
7.2.320.0180.00316.74
7.2.310.0060.01116.48
7.2.300.0070.01516.39
7.2.290.0160.00616.52
7.2.250.0040.01515.20
7.2.240.0030.01714.93
7.2.230.0060.01115.18
7.2.220.0120.00015.10
7.2.210.0030.00615.11
7.2.200.0060.00915.02
7.2.190.0040.01115.09
7.2.180.0090.00615.11
7.2.170.0100.00615.07
7.2.80.0070.00316.48
7.2.60.0100.00316.85
7.2.00.0070.01019.18
7.1.330.0030.01315.99
7.1.320.0060.00615.93
7.1.310.0040.00415.71
7.1.300.0040.00715.95
7.1.290.0030.01315.70
7.1.280.0090.00615.48
7.1.270.0070.00715.84
7.1.260.0030.00615.73
7.1.200.0000.00815.84
7.1.100.0000.01118.07
7.1.70.0040.00816.82
7.1.60.0140.01019.40
7.1.50.0000.02216.70
7.1.00.0030.07722.48
7.0.200.0040.00416.89
7.0.140.0070.07322.09
7.0.60.0130.07720.03
7.0.50.0000.05717.73
7.0.40.0100.04020.21
7.0.30.0230.09020.26
7.0.20.0270.06320.34
7.0.10.0030.04720.18
7.0.00.0070.04320.16
5.6.280.0030.07320.90
5.6.210.0100.08320.61
5.6.200.0070.05318.17
5.6.190.0100.04020.55
5.6.180.0300.07720.47
5.6.170.0200.06320.55
5.6.160.0100.05720.41
5.6.150.0130.03318.12
5.6.140.0100.05718.14
5.6.130.0030.07018.21
5.6.120.0070.04320.99
5.6.110.0030.04021.14
5.6.100.0070.07021.01
5.6.90.0200.07321.02
5.6.80.0030.08020.52
5.6.70.4570.03320.38
5.5.350.0030.09320.45
5.5.340.0070.05317.96
5.5.330.0130.03020.40
5.5.320.0370.07320.27
5.5.310.0200.06020.32
5.5.300.0000.05317.94
5.5.290.0100.07317.96
5.5.280.0070.04020.64
5.5.270.0130.04320.88
5.5.260.0030.04020.88
5.5.250.0100.07720.59
5.5.240.0100.07320.27
5.4.450.0200.05319.46
5.4.440.0330.05019.39
5.4.430.0500.03719.47
5.4.420.0170.05019.56
5.4.410.0270.04719.36
5.4.400.0230.04718.84
5.4.390.0170.03318.84
5.4.380.0330.05018.80
5.4.370.0400.07318.56
5.4.360.0170.06718.54
5.4.350.0370.05318.50
5.4.340.0300.06018.73
5.4.320.0050.03812.52
5.4.310.0040.04012.52
5.4.300.0060.03812.52
5.4.290.0120.04512.51
5.4.280.0060.04012.41
5.4.270.0080.03512.41
5.4.260.0060.04112.40
5.4.250.0060.04312.41
5.4.240.0040.04112.41
5.4.230.0100.04612.40
5.4.220.0060.03612.40
5.4.210.0070.03612.40
5.4.200.0090.03812.40
5.4.190.0060.04512.39
5.4.180.0130.04412.39
5.4.170.0100.04612.41
5.4.160.0100.04312.40
5.4.150.0030.04012.40
5.4.140.0070.04512.08
5.4.130.0050.04012.07
5.4.120.0090.04012.03
5.4.110.0090.03612.02
5.4.100.0100.03412.03
5.4.90.0070.03712.02
5.4.80.0080.03712.02
5.4.70.0070.03412.02
5.4.60.0070.04512.02
5.4.50.0100.03112.02
5.4.40.0040.03512.01
5.4.30.0070.03412.00
5.4.20.0040.03812.01
5.4.10.0070.03312.00
5.4.00.0050.03611.50
5.3.290.0080.04512.80
5.3.280.0050.03812.71
5.3.270.0060.04012.73
5.3.260.0070.03712.72
5.3.250.0070.03512.71
5.3.240.0040.03912.72
5.3.230.0070.03612.71
5.3.220.0120.04512.68
5.3.210.0090.05412.68
5.3.200.0100.03412.68
5.3.190.0060.03712.68
5.3.180.0090.03312.67
5.3.170.0020.04012.67
5.3.160.0090.03312.67
5.3.150.0060.03712.67
5.3.140.0080.03512.66
5.3.130.0070.04112.65
5.3.120.0050.04012.66
5.3.110.0060.03912.66
5.3.100.0070.03612.11
5.3.90.0070.03512.08
5.3.80.0060.03812.07
5.3.70.0070.03612.07
5.3.60.0020.04012.06
5.3.50.0040.03712.00
5.3.40.0040.03812.00
5.3.30.0070.03311.95
5.3.20.0070.03411.73
5.3.10.0060.03611.69
5.3.00.0090.03611.68
5.2.170.0070.0369.22
5.2.160.0030.0319.22
5.2.150.0060.0309.22
5.2.140.0060.0319.21
5.2.130.0070.0359.18
5.2.120.0060.0279.18
5.2.110.0060.0289.18
5.2.100.0060.0279.18
5.2.90.0060.0289.18
5.2.80.0060.0319.17
5.2.70.0030.0339.18
5.2.60.0080.0389.13
5.2.50.0050.0449.10
5.2.40.0080.0309.07
5.2.30.0070.0569.05
5.2.20.0060.0399.04
5.2.10.0080.0368.95
5.2.00.0090.0398.81
5.1.60.0050.0388.09
5.1.50.0050.0278.09
5.1.40.0060.0258.07
5.1.30.0060.0298.42
5.1.20.0040.0358.44
5.1.10.0060.0338.17
5.1.00.0100.0348.17
5.0.50.0040.0276.64
5.0.40.0070.0176.51
5.0.30.0030.0326.32
5.0.20.0070.0246.28
5.0.10.0030.0236.26
5.0.00.0030.0326.25
4.4.90.0020.0184.78
4.4.80.0010.0174.75
4.4.70.0010.0174.75
4.4.60.0040.0144.75
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0020.0164.85
4.4.10.0030.0184.85
4.4.00.0030.0284.76
4.3.110.0040.0144.67
4.3.100.0020.0164.66
4.3.90.0030.0144.63
4.3.80.0040.0254.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0040.0193.30
4.3.20.0020.0193.28
4.3.10.0040.0143.23
4.3.00.0070.01015.94

preferences:
57.61 ms | 401 KiB | 5 Q