3v4l.org

run code in 300+ PHP versions simultaneously
<?php function onDie(){ $message = ob_get_contents(); //Capture 'Doh' ob_end_clean(); //Cleans output buffer callWhateverYouWhant(); } register_shutdown_function('onDie'); //... ob_start(); //You need this to Turn on output buffering before using die/exit @$dumbVar = 1000/0 or die('Doh'); //"@" prevent warning/error from php //... ob_end_clean(); //Remember clean your buffer before you need to use echo/print

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.0040.01416.50
8.3.50.0070.01117.94
8.3.40.0120.00318.97
8.3.30.0070.00718.71
8.3.20.0000.00820.20
8.3.10.0080.00023.49
8.3.00.0030.00717.59
8.2.180.0070.01116.50
8.2.170.0120.00322.96
8.2.160.0090.00620.36
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00917.50
8.2.110.0060.00320.38
8.2.100.0040.00817.93
8.2.90.0050.00219.05
8.2.80.0080.00017.97
8.2.70.0090.00017.75
8.2.60.0080.00017.79
8.2.50.0040.00418.07
8.2.40.0040.00420.97
8.2.30.0000.00820.64
8.2.20.0000.00717.75
8.2.10.0000.00818.07
8.2.00.0040.00418.07
8.1.280.0070.00725.92
8.1.270.0040.00423.79
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00323.97
8.1.230.0060.00617.66
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0080.00017.23
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0050.00319.02
8.1.160.0050.00221.92
8.1.150.0030.00618.88
8.1.140.0050.00319.46
8.1.130.0070.00017.71
8.1.120.0000.00717.41
8.1.110.0050.00317.47
8.1.100.0040.00417.38
8.1.90.0070.00017.35
8.1.80.0000.00917.45
8.1.70.0000.00717.52
8.1.60.0000.00817.43
8.1.50.0000.00817.57
8.1.40.0040.00417.56
8.1.30.0080.00017.73
8.1.20.0000.00717.66
8.1.10.0050.00217.59
8.1.00.0060.00317.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00317.26
8.0.260.0000.00617.13
8.0.250.0040.00417.07
8.0.240.0040.00416.96
8.0.230.0050.00316.94
8.0.220.0040.00417.00
8.0.210.0000.00816.87
8.0.200.0100.00017.06
8.0.190.0050.00317.07
8.0.180.0040.00416.99
8.0.170.0000.00716.98
8.0.160.0030.00316.93
8.0.150.0000.00716.80
8.0.140.0080.00016.81
8.0.130.0030.00313.38
8.0.120.0040.00416.89
8.0.110.0000.00716.92
8.0.100.0000.00816.86
8.0.90.0020.00516.76
8.0.80.0130.00616.91
8.0.70.0050.00317.09
8.0.60.0000.00716.86
8.0.50.0040.00416.96
8.0.30.0060.01317.01
8.0.20.0100.00817.40
8.0.10.0070.00016.90
8.0.00.0090.00816.87
7.4.330.0000.00515.16
7.4.320.0030.00316.54
7.4.300.0060.00016.46
7.4.290.0030.00316.63
7.4.280.0000.00716.60
7.4.270.0060.00316.58
7.4.260.0040.00416.39
7.4.250.0070.00016.55
7.4.240.0030.00316.62
7.4.230.0070.00016.61
7.4.220.0120.00616.56
7.4.210.0060.01216.64
7.4.200.0040.00416.48
7.4.160.0060.01016.44
7.4.150.0060.01017.40
7.4.140.0180.01517.86
7.4.130.0110.00716.50
7.4.120.0110.00916.68
7.4.110.0060.01216.38
7.4.100.0170.00016.60
7.4.90.0030.01316.56
7.4.80.0120.00619.39
7.4.70.0030.01316.55
7.4.60.0180.00416.72
7.4.50.0030.00616.34
7.4.40.0060.01116.68
7.4.30.0090.01216.61
7.4.00.0030.01315.16
7.3.330.0020.00213.15
7.3.320.0060.00013.24
7.3.310.0080.00016.18
7.3.300.0030.00316.18
7.3.290.0090.00616.34
7.3.280.0090.00716.32
7.3.270.0130.00617.40
7.3.260.0100.01316.55
7.3.250.0120.00516.29
7.3.240.0080.01316.36
7.3.230.0030.01316.39
7.3.210.0100.00716.35
7.3.200.0080.01216.44
7.3.190.0100.00716.40
7.3.180.0060.01016.43
7.3.170.0110.00716.45
7.3.160.0080.00816.51
7.2.330.0150.00416.63
7.2.320.0150.00316.53
7.2.310.0150.00316.56
7.2.300.0060.00916.49
7.2.290.0070.01016.84
7.2.60.0070.01016.77
7.2.00.0040.01119.48
7.1.200.0090.00615.71
7.1.100.0000.01118.08
7.1.70.0080.00017.09
7.1.60.0070.01719.11
7.1.50.0090.01217.04
7.1.00.0070.07322.36
7.0.200.0130.00716.44
7.0.60.0200.07319.79
7.0.50.0030.08017.94
7.0.40.0070.08720.18
7.0.30.0070.08320.10
7.0.20.0230.07020.19
7.0.10.0100.04720.05
7.0.00.0070.04720.09
5.6.280.0030.05721.03
5.6.210.0130.05020.46
5.6.200.0030.08718.18
5.6.190.0130.08020.47
5.6.180.0270.04320.61
5.6.170.0300.05020.47
5.6.160.0070.04320.47
5.6.150.0100.07318.20
5.6.140.0000.05318.11
5.6.130.0070.09018.28
5.6.120.0100.08021.10
5.6.110.0100.08021.04
5.6.100.0030.08321.11
5.6.90.0030.04721.11
5.6.80.0030.04720.39
5.6.70.4430.04020.50
5.5.350.0000.08320.36
5.5.340.0030.07017.94
5.5.330.0030.04320.19
5.5.320.0370.03020.27
5.5.310.0230.07720.41
5.5.300.0030.04717.99
5.5.290.0170.04718.00
5.5.280.0200.07020.96
5.5.270.0030.06320.86
5.5.260.0000.04320.97
5.5.250.0070.07020.58
5.5.240.0000.08720.27
5.4.450.0600.08719.39
5.4.440.0470.06019.63
5.4.430.0430.06319.47
5.4.420.0600.05719.60
5.4.410.0470.05319.29
5.4.400.0470.05019.16
5.4.390.0500.05319.06
5.4.380.0570.04319.25
5.4.370.0630.04319.15
5.4.360.0530.06319.29
5.4.350.0070.08019.26
5.4.340.0230.04319.30
5.4.320.0070.06318.84
5.4.310.0570.06019.14
5.4.300.0500.05019.13
5.4.290.0600.05719.22
5.4.280.0400.06019.15
5.4.270.0400.06019.12
5.4.260.0430.05319.25
5.4.250.0570.06018.87
5.4.240.0500.05718.87
5.4.230.0500.05318.86
5.4.220.0470.05319.22
5.4.210.0530.04719.14
5.4.200.0430.05719.14
5.4.190.0330.06318.82
5.4.180.0130.05319.31
5.4.170.0070.06719.28
5.4.160.0130.06319.13
5.4.150.0270.06718.99
5.4.140.0070.05316.56
5.4.130.0200.05016.29
5.4.120.0030.05716.57
5.4.110.0200.05716.61
5.4.100.0570.05016.52
5.4.90.0430.04716.45
5.4.80.0100.05016.25
5.4.70.0170.04716.55
5.4.60.0070.05316.40
5.4.50.0200.04016.57
5.4.40.0130.05016.59
5.4.30.0300.05016.49
5.4.20.0630.04016.50
5.4.10.0330.04716.25
5.4.00.0100.05315.75

preferences:
53.44 ms | 400 KiB | 5 Q