3v4l.org

run code in 300+ PHP versions simultaneously
<?php function onDie(){ $message = ob_get_contents(); //Capture 'Doh' ob_end_clean(); //Cleans output buffer echo 'ondie'.$message; //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.0110.00716.88
8.3.50.0040.01418.05
8.3.40.0120.00918.91
8.3.30.0070.00718.70
8.3.20.0040.00420.16
8.3.10.0030.00523.66
8.3.00.0110.00017.63
8.2.180.0160.00616.75
8.2.170.0140.00322.96
8.2.160.0070.00720.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0060.00622.21
8.2.100.0110.00018.05
8.2.90.0030.00519.28
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00617.80
8.2.50.0090.00018.07
8.2.40.0050.00521.10
8.2.30.0070.00020.50
8.2.20.0040.00417.65
8.2.10.0000.00817.97
8.2.00.0040.00417.96
8.1.280.0100.00725.92
8.1.270.0050.00323.92
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00020.78
8.1.230.0090.00317.79
8.1.220.0080.00317.78
8.1.210.0050.00318.77
8.1.200.0000.01117.35
8.1.190.0000.00917.22
8.1.180.0030.00518.10
8.1.170.0040.00419.01
8.1.160.0030.00522.02
8.1.150.0030.00718.76
8.1.140.0000.00819.61
8.1.130.0050.00317.66
8.1.120.0050.00217.43
8.1.110.0000.00717.46
8.1.100.0040.00417.46
8.1.90.0040.00417.44
8.1.80.0050.00317.40
8.1.70.0070.00017.35
8.1.60.0050.00317.61
8.1.50.0040.00417.40
8.1.40.0000.00817.50
8.1.30.0040.00417.57
8.1.20.0000.00817.64
8.1.10.0020.00517.46
8.1.00.0040.00417.47
8.0.300.0000.00918.77
8.0.290.0000.00716.88
8.0.280.0030.00318.50
8.0.270.0030.00317.15
8.0.260.0000.00817.30
8.0.250.0050.00317.01
8.0.240.0040.00416.89
8.0.230.0070.00016.86
8.0.220.0000.00816.81
8.0.210.0070.00016.82
8.0.200.0030.00616.90
8.0.190.0040.00417.04
8.0.180.0000.00716.90
8.0.170.0050.00316.99
8.0.160.0070.00016.95
8.0.150.0020.00516.96
8.0.140.0060.00316.93
8.0.130.0030.00313.46
8.0.120.0050.00316.87
8.0.110.0050.00316.93
8.0.100.0080.00016.73
8.0.90.0030.00317.02
8.0.80.0110.00417.02
8.0.70.0040.00416.83
8.0.60.0040.00416.98
8.0.50.0050.00316.84
8.0.30.0100.00717.17
8.0.20.0100.00817.40
8.0.10.0070.00017.02
8.0.00.0140.00516.80
7.4.330.0030.00315.08
7.4.320.0030.00316.51
7.4.300.0030.00316.64
7.4.290.0040.00416.59
7.4.280.0060.00316.58
7.4.270.0050.00316.42
7.4.260.0030.00316.47
7.4.250.0040.00416.36
7.4.240.0000.00716.54
7.4.230.0070.00016.39
7.4.220.0060.01316.57
7.4.210.0070.00716.47
7.4.200.0060.00316.49
7.4.160.0070.01016.61
7.4.150.0070.01017.40
7.4.140.0130.00817.86
7.4.130.0070.01216.54
7.4.120.0100.00816.51
7.4.110.0030.01316.39
7.4.100.0030.01416.50
7.4.90.0090.00916.47
7.4.80.0160.00619.39
7.4.70.0070.01016.59
7.4.60.0090.00616.41
7.4.50.0000.00916.64
7.4.40.0140.00716.53
7.4.30.0100.00616.63
7.4.00.0070.01014.88
7.3.330.0000.00513.19
7.3.320.0020.00213.22
7.3.310.0030.00416.26
7.3.300.0060.00016.18
7.3.290.0100.00516.29
7.3.280.0090.00916.29
7.3.270.0100.00717.40
7.3.260.0140.00316.47
7.3.250.0090.00816.38
7.3.240.0070.01416.32
7.3.230.0030.01416.39
7.3.210.0160.00016.23
7.3.200.0080.00816.58
7.3.190.0100.00616.32
7.3.180.0080.00816.34
7.3.170.0120.00916.27
7.3.160.0130.00316.57
7.3.10.0060.00615.98
7.3.00.0100.00316.26
7.2.330.0140.00316.75
7.2.320.0090.01216.79
7.2.310.0150.00316.67
7.2.300.0100.00716.80
7.2.290.0170.00516.45
7.2.130.0090.00416.72
7.2.120.0160.00316.59
7.2.110.0030.00716.61
7.2.100.0150.00316.60
7.2.90.0060.00616.80
7.2.80.0070.00316.67
7.2.70.0040.00816.94
7.2.60.0090.00716.69
7.2.50.0000.01016.69
7.2.40.0080.00416.70
7.2.30.0100.00317.04
7.2.20.0000.01516.66
7.2.10.0090.00016.52
7.2.00.0070.00718.15
7.1.250.0040.00715.62
7.1.200.0000.01015.90
7.1.100.0030.00718.13
7.1.70.0000.00817.01
7.1.60.0140.01119.11
7.1.50.0030.00916.91
7.1.00.0070.07322.28
7.0.200.0160.00416.79
7.0.60.0070.03719.94
7.0.50.0030.08017.95
7.0.40.0030.04720.02
7.0.30.0300.04720.26
7.0.20.0200.06720.19
7.0.10.0270.08020.05
7.0.00.0000.07320.26
5.6.210.0070.03720.71
5.6.200.0030.08018.20
5.6.190.0230.07020.41
5.6.180.0300.04020.34
5.6.170.0300.04720.39
5.6.160.0170.07320.47
5.6.150.0100.07318.16
5.6.140.0100.06318.21
5.6.130.0100.07718.14
5.6.120.0000.06321.00
5.6.110.0200.07320.98
5.6.100.0030.08021.11
5.6.90.0100.07321.00
5.6.80.0130.07320.51
5.6.70.4200.03720.38
5.5.350.0030.06020.38
5.5.340.0000.04018.03
5.5.330.0100.07320.32
5.5.320.0530.06320.25
5.5.310.0100.05020.34
5.5.300.0170.07017.94
5.5.290.0070.04718.07
5.5.280.0100.08320.87
5.5.270.0070.08720.61
5.5.260.0000.09320.88
5.5.250.0100.08320.58
5.5.240.0100.06320.16
5.4.450.0230.05019.31
5.4.440.0100.06719.48
5.4.430.0170.08319.59
5.4.420.0230.05319.58
5.4.410.0270.05019.51
5.4.400.0270.04018.88
5.4.390.0130.05719.00
5.4.380.0300.05719.26
5.4.370.0200.05019.31
5.4.360.0100.06319.23
5.4.350.0230.08018.87
5.4.340.0130.06019.15
5.4.320.0100.05719.06
5.4.310.0200.05018.98
5.4.300.0070.06319.15
5.4.290.0230.05018.87
5.4.280.0200.05019.32
5.4.270.0130.05319.32
5.4.260.0200.04719.13
5.4.250.0300.06719.27
5.4.240.0200.05019.25
5.4.230.0100.06019.14
5.4.220.0370.08318.86
5.4.210.0130.05319.28
5.4.200.0130.05018.83
5.4.190.0130.05319.27
5.4.180.0230.04719.22
5.4.170.0100.07719.14
5.4.160.0330.05719.20
5.4.150.0170.07719.13
5.4.140.0200.05016.56
5.4.130.0230.05316.52
5.4.120.0230.04316.29
5.4.110.0170.05016.60
5.4.100.0070.05716.63
5.4.90.0100.05316.45
5.4.80.0230.04316.63
5.4.70.0170.06316.50
5.4.60.0130.05716.50
5.4.50.0130.05316.59
5.4.40.0170.07016.57
5.4.30.0300.05316.49
5.4.20.0200.04716.57
5.4.10.0200.04716.50
5.4.00.0200.04315.71

preferences:
55.21 ms | 400 KiB | 5 Q