3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '<p>As big a threat as ISIS is, the competition that truly defines the Middle East is the one between Saudi Arabia and Iran. Where do we fit in?<br clear="all"></p>'; $_content = trim(preg_replace(array('#<p[^>]*>#i', '#</p>#i', '#<br[^>]*>#i','#</br>#i'), '', $_content)); echo $_content; if(stripos($_content, '<img ') === false) { echo "\nNO IMG"; } else { echo "\nIMG"; }

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.01116.63
8.3.50.0090.01122.96
8.3.40.0070.01119.05
8.3.30.0070.00719.09
8.3.20.0040.00420.34
8.3.10.0030.00523.71
8.3.00.0080.00019.50
8.2.180.0120.00416.88
8.2.170.0110.00322.96
8.2.160.0070.00720.38
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00521.28
8.2.110.0090.00020.26
8.2.100.0000.01218.03
8.2.90.0060.00319.26
8.2.80.0060.00317.97
8.2.70.0030.00917.71
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0030.00518.18
8.2.20.0000.00717.76
8.2.10.0040.00418.14
8.2.00.0040.00417.90
8.1.280.0060.00925.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00524.03
8.1.230.0070.00720.88
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0090.00317.22
8.1.190.0040.00417.38
8.1.180.0070.00018.10
8.1.170.0040.00418.61
8.1.160.0040.00421.89
8.1.150.0000.00718.77
8.1.140.0030.00517.63
8.1.130.0000.00717.86
8.1.120.0070.00017.60
8.1.110.0040.00417.52
8.1.100.0040.00417.53
8.1.90.0040.00417.50
8.1.80.0000.00717.47
8.1.70.0000.00717.52
8.1.60.0030.00617.70
8.1.50.0030.00617.50
8.1.40.0000.00817.63
8.1.30.0080.00017.73
8.1.20.0000.00817.79
8.1.10.0000.00717.63
8.1.00.0030.00517.62
8.0.300.0030.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.48
8.0.270.0030.00317.28
8.0.260.0030.00317.28
8.0.250.0030.00517.09
8.0.240.0000.00717.12
8.0.230.0060.00316.92
8.0.220.0070.00016.96
8.0.210.0050.00316.97
8.0.200.0030.00317.03
8.0.190.0000.00817.03
8.0.180.0020.00516.89
8.0.170.0040.00416.99
8.0.160.0030.00517.05
8.0.150.0040.00416.98
8.0.140.0040.00316.95
8.0.130.0070.00013.37
8.0.120.0000.00816.96
8.0.110.0080.00016.88
8.0.100.0070.00017.04
8.0.90.0040.00416.79
8.0.80.0100.01016.90
8.0.70.0000.00716.88
8.0.60.0000.00817.05
8.0.50.0040.00416.85
8.0.30.0080.01117.29
8.0.20.0090.00917.40
8.0.10.0020.00517.05
8.0.00.0070.01316.93
7.4.330.0000.00515.17
7.4.320.0060.00016.85
7.4.300.0020.00516.62
7.4.290.0030.00316.82
7.4.280.0050.00216.81
7.4.270.0030.00316.71
7.4.260.0000.00816.60
7.4.250.0090.00016.76
7.4.240.0050.00216.73
7.4.230.0030.00316.81
7.4.220.0130.00616.81
7.4.210.0140.00716.89
7.4.200.0050.00216.80
7.4.160.0090.00616.67
7.4.150.0140.00517.40
7.4.140.0070.01417.86
7.4.130.0100.00816.58
7.4.120.0090.00816.92
7.4.110.0080.01116.73
7.4.100.0200.00316.63
7.4.90.0070.01016.61
7.4.80.0090.00919.39
7.4.70.0150.00616.71
7.4.60.0070.01016.61
7.4.50.0000.00416.79
7.4.40.0130.00316.70
7.4.30.0130.00716.72
7.4.00.0100.00415.27
7.3.330.0030.00313.32
7.3.320.0050.00013.25
7.3.310.0000.00616.41
7.3.300.0050.00216.37
7.3.290.0060.00916.43
7.3.280.0070.01016.43
7.3.270.0120.00617.40
7.3.260.0190.00016.75
7.3.250.0100.01016.62
7.3.240.0260.01216.41
7.3.230.0090.00916.65
7.3.210.0110.00816.43
7.3.200.0120.00319.39
7.3.190.0100.00716.45
7.3.180.0060.00916.41
7.3.170.0070.01016.45
7.3.160.0060.01116.53
7.3.120.0050.01015.97
7.3.110.0100.00816.15
7.3.100.0080.00916.08
7.3.90.0080.01016.10
7.3.80.0010.01116.15
7.3.70.0030.01016.11
7.3.60.0020.01416.10
7.3.50.0020.01116.09
7.3.40.0090.00615.99
7.3.30.0050.00916.10
7.3.20.0080.00716.94
7.3.10.0050.01017.06
7.3.00.0050.01116.97
7.2.330.0150.00916.64
7.2.320.0090.00916.79
7.2.310.0100.01316.66
7.2.300.0100.00616.61
7.2.290.0060.01216.72
7.2.250.0110.00315.24
7.2.240.0100.00716.15
7.2.230.0040.01416.19
7.2.220.0070.01116.19
7.2.210.0070.00616.07
7.2.200.0050.01016.14
7.2.190.0050.00716.06
7.2.180.0040.00916.06
7.2.170.0090.00816.22
7.2.160.0100.00717.15
7.2.150.0030.00917.15
7.2.140.0120.00317.15
7.2.130.0040.01117.15
7.2.120.0030.00917.15
7.2.110.0110.00417.15
7.2.100.0080.00817.15
7.2.90.0030.01017.15
7.2.80.0000.01617.15
7.2.70.0070.00317.15
7.2.60.0070.01017.15
7.2.50.0030.01017.21
7.2.40.0070.00717.15
7.2.30.0070.00717.15
7.2.20.0070.00717.15
7.2.10.0000.01517.15
7.2.00.0070.00818.29
7.1.330.0050.01016.65
7.1.320.0100.00316.43
7.1.310.0020.01216.44
7.1.300.0060.00816.43
7.1.290.0070.00416.56
7.1.280.0070.00516.59
7.1.270.0080.00616.53
7.1.260.0100.00316.47
7.1.250.0070.00717.15
7.1.200.0030.01016.01
7.1.100.0040.00718.28
7.1.70.0030.01017.28
7.1.60.0140.01019.40
7.1.50.0060.00917.02
7.1.00.0030.07722.26
7.0.200.0000.00816.98
7.0.140.0070.07022.08
7.0.60.0030.04319.91
7.0.50.0000.04317.79
7.0.40.0070.07020.32
7.0.30.0230.04020.22
7.0.20.0300.05720.23
7.0.10.0100.07320.06
7.0.00.0100.08720.31
5.6.280.0100.06720.83
5.6.210.0070.04020.56
5.6.200.0000.06718.16
5.6.190.0070.04320.35
5.6.180.0230.07720.48
5.6.170.0270.04020.48
5.6.160.0070.05020.49
5.6.150.0070.04318.12
5.6.140.0030.09018.07
5.6.130.0100.07018.09
5.6.120.0030.04021.14
5.6.110.0030.06721.00
5.6.100.0000.06321.08
5.6.90.0030.06720.95
5.6.80.0030.05020.40
5.5.350.0130.08720.41
5.5.340.0070.04017.99
5.5.330.0030.04320.43
5.5.320.0100.06320.24
5.5.310.0270.07720.23
5.5.300.0030.08018.02
5.5.290.0100.08018.00
5.5.280.0130.08020.76
5.5.270.0070.08720.76
5.5.260.0100.08020.76
5.5.250.0030.07720.54
5.5.240.0230.07020.36
5.4.450.0370.04319.21
5.4.440.0570.05719.57
5.4.430.0330.03719.54
5.4.420.0470.03719.56
5.4.410.0270.05319.30
5.4.400.0430.04019.09
5.4.390.0500.04018.92
5.4.380.0470.05718.74
5.4.370.0370.05018.71
5.4.360.0300.06018.50
5.4.350.0670.06018.61
5.4.340.0370.05018.67
5.4.320.0080.03312.46
5.4.310.0210.08512.45
5.4.300.0100.06112.45
5.4.290.0080.03812.45
5.4.280.0100.03512.35
5.4.270.0050.04312.35
5.4.260.0060.04512.35
5.4.250.0120.04612.35
5.4.240.0050.03812.35
5.4.230.0020.04312.34
5.4.220.0040.06912.34
5.4.210.0100.06612.34
5.4.200.0100.06312.34
5.4.190.0120.04612.34
5.4.180.0080.04212.34
5.4.170.0070.04312.35
5.4.160.0090.04412.34
5.4.150.0060.03812.34
5.4.140.0090.03612.03
5.4.130.0060.03712.02
5.4.120.0070.03511.97
5.4.110.0040.03711.96
5.4.100.0060.03511.97
5.4.90.0040.03911.96
5.4.80.0030.04111.96
5.4.70.0050.03911.96
5.4.60.0110.04511.96
5.4.50.0060.03611.96
5.4.40.0040.03611.95
5.4.30.0100.03511.94
5.4.20.0080.03911.94
5.4.10.0080.04911.95
5.4.00.0080.04211.43
5.3.290.0060.04312.80
5.3.280.0060.03812.71
5.3.270.0070.03712.72
5.3.260.0060.03912.72
5.3.250.0060.03712.72
5.3.240.0090.04312.72
5.3.230.0080.03512.71
5.3.220.0060.03712.68
5.3.210.0050.04612.68
5.3.200.0090.03812.68
5.3.190.0070.04312.68
5.3.180.0150.05212.68
5.3.170.0170.04812.67
5.3.160.0080.03912.67
5.3.150.0050.04912.67
5.3.140.0080.05012.66
5.3.130.0080.05412.66
5.3.120.0060.04512.66
5.3.110.0070.04712.66
5.3.100.0090.03512.12
5.3.90.0110.05012.08
5.3.80.0090.04012.07
5.3.70.0070.04912.08
5.3.60.0060.04812.06
5.3.50.0120.04512.00
5.3.40.0050.03912.00
5.3.30.0080.03611.95
5.3.20.0080.05711.75
5.3.10.0100.05911.70
5.3.00.0110.07111.69
5.2.170.0090.0289.19
5.2.160.0010.0359.19
5.2.150.0040.0439.19
5.2.140.0040.0419.18
5.2.130.0090.0609.15
5.2.120.0060.0409.14
5.2.110.0070.0349.15
5.2.100.0070.0279.15
5.2.90.0080.0269.15
5.2.80.0030.0339.14
5.2.70.0040.0339.14
5.2.60.0090.0309.10
5.2.50.0060.0299.06
5.2.40.0030.0339.05
5.2.30.0050.0369.02
5.2.20.0050.0299.02
5.2.10.0030.0328.92
5.2.00.0050.0358.78
5.1.60.0040.0318.06
5.1.50.0060.0358.06
5.1.40.0050.0268.04
5.1.30.0090.0248.39
5.1.20.0050.0288.41
5.1.10.0040.0278.14
5.1.00.0060.0268.14
5.0.50.0020.0236.61
5.0.40.0050.0186.47
5.0.30.0060.0316.29
5.0.20.0040.0216.26
5.0.10.0060.0206.24
5.0.00.0040.0316.23
4.4.90.0030.0164.78
4.4.80.0030.0174.76
4.4.70.0030.0174.76
4.4.60.0060.0154.75
4.4.50.0050.0154.77
4.4.40.0010.0304.71
4.4.30.0070.0274.76
4.4.20.0060.0254.84
4.4.10.0050.0144.85
4.4.00.0030.0264.76
4.3.110.0020.0204.67
4.3.100.0030.0304.66
4.3.90.0080.0394.63
4.3.80.0000.0364.58
4.3.70.0010.0234.63
4.3.60.0050.0374.63
4.3.50.0030.0224.63
4.3.40.0060.0334.54
4.3.30.0000.0263.29
4.3.20.0030.0293.26
4.3.10.0020.0233.21
4.3.00.0000.02015.95

preferences:
48.87 ms | 401 KiB | 5 Q