3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_content = '<p><img src="http://bla.bla/bla.jpg">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 "<br>NO IMG"; } else { echo "<br>IMG"; }

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.00416.63
8.3.50.0170.00722.88
8.3.40.0090.00618.79
8.3.30.0100.00718.95
8.3.20.0000.00720.20
8.3.10.0080.00023.54
8.3.00.0060.00319.38
8.2.180.0040.01216.38
8.2.170.0070.01322.96
8.2.160.0030.01020.39
8.2.150.0090.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0070.00021.07
8.2.110.0070.00320.32
8.2.100.0110.00017.91
8.2.90.0000.00819.11
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0060.00617.93
8.2.50.0000.00918.07
8.2.40.0050.00318.22
8.2.30.0050.00218.20
8.2.20.0060.00317.75
8.2.10.0000.00818.08
8.2.00.0000.00817.86
8.1.280.0170.00325.92
8.1.270.0050.00324.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00321.94
8.1.230.0120.00022.24
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0040.00418.69
8.1.160.0040.00422.09
8.1.150.0040.00418.91
8.1.140.0040.00417.54
8.1.130.0000.00717.87
8.1.120.0040.00417.47
8.1.110.0040.00417.52
8.1.100.0040.00417.54
8.1.90.0000.00717.57
8.1.80.0030.00317.45
8.1.70.0000.00717.42
8.1.60.0040.00417.60
8.1.50.0060.00317.52
8.1.40.0040.00417.61
8.1.30.0000.00817.64
8.1.20.0000.00717.82
8.1.10.0000.00817.64
8.1.00.0050.00317.61
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0000.00717.29
8.0.260.0000.00717.29
8.0.250.0000.00817.17
8.0.240.0030.00317.02
8.0.230.0030.00616.91
8.0.220.0000.00716.97
8.0.210.0000.00717.02
8.0.200.0050.00317.06
8.0.190.0000.00917.03
8.0.180.0000.00817.05
8.0.170.0000.00817.02
8.0.160.0040.00416.92
8.0.150.0070.00016.89
8.0.140.0040.00416.93
8.0.130.0040.00413.46
8.0.120.0040.00416.97
8.0.110.0050.00316.90
8.0.100.0040.00417.03
8.0.90.0000.00817.03
8.0.80.0060.01016.96
8.0.70.0070.00016.89
8.0.60.0000.00817.02
8.0.50.0000.00716.86
8.0.30.0050.01517.32
8.0.20.0100.00817.40
8.0.10.0030.00617.11
8.0.00.0070.01117.04
7.4.330.0050.00015.05
7.4.320.0060.00016.83
7.4.300.0000.00616.66
7.4.290.0000.00716.75
7.4.280.0000.00716.75
7.4.270.0000.00816.68
7.4.260.0030.00716.80
7.4.250.0000.00716.74
7.4.240.0050.00216.76
7.4.230.0040.00416.94
7.4.220.0150.00916.85
7.4.210.0100.00716.90
7.4.200.0000.00716.93
7.4.160.0080.00816.64
7.4.150.0120.00817.40
7.4.140.0100.00817.86
7.4.130.0050.01216.84
7.4.120.0100.00716.56
7.4.110.0100.00716.64
7.4.100.0110.00816.63
7.4.90.0030.01716.61
7.4.80.0030.01519.39
7.4.70.0070.01116.71
7.4.60.0100.00716.80
7.4.50.0060.00316.34
7.4.40.0070.01016.75
7.4.30.0130.00316.84
7.4.00.0060.01015.22
7.3.330.0060.00013.29
7.3.320.0000.00513.21
7.3.310.0070.00016.25
7.3.300.0030.00316.41
7.3.290.0070.00716.45
7.3.280.0100.00616.40
7.3.270.0110.00617.40
7.3.260.0060.01116.39
7.3.250.0090.01016.53
7.3.240.0070.01116.36
7.3.230.0080.00816.39
7.3.210.0130.00516.64
7.3.200.0110.00519.39
7.3.190.0110.01116.45
7.3.180.0100.00716.32
7.3.170.0140.00316.63
7.3.160.0000.01516.53
7.3.10.0030.01016.82
7.3.00.0090.00316.81
7.2.330.0120.00616.79
7.2.320.0070.01016.66
7.2.310.0090.01016.79
7.2.300.0100.00616.68
7.2.290.0150.00316.61
7.2.130.0000.01217.28
7.2.120.0030.00617.05
7.2.110.0000.01116.94
7.2.100.0060.00917.18
7.2.90.0030.01017.20
7.2.80.0040.00717.18
7.2.70.0100.00316.98
7.2.60.0110.00416.96
7.2.50.0040.00716.88
7.2.40.0040.01116.74
7.2.30.0040.01117.00
7.2.20.0070.00417.01
7.2.10.0100.00317.10
7.2.00.0080.00418.33
7.1.250.0100.00615.75
7.1.100.0000.01218.18
7.1.70.0000.00817.34
7.1.60.0140.01119.40
7.1.50.0000.01917.12
7.1.00.0030.07322.47
7.0.200.0030.00616.98
7.0.140.0030.07022.12
7.0.60.0030.06719.89
7.0.50.0030.04017.83
7.0.40.0000.05019.98
7.0.30.0470.07320.21
7.0.20.0130.05720.18
7.0.10.0070.08320.14
7.0.00.0030.08720.29
5.6.280.0070.07021.07
5.6.210.0000.07020.50
5.6.200.0100.08018.19
5.6.190.0000.05020.63
5.6.180.0830.04320.32
5.6.170.0330.04020.46
5.6.160.0130.07720.32
5.6.150.0000.04018.11
5.6.140.0030.07718.22
5.6.130.0100.08718.18
5.6.120.0030.04321.05
5.6.110.0030.09021.09
5.6.100.0070.04720.88
5.6.90.0070.08021.10
5.6.80.0070.05720.40
5.5.350.0100.07320.44
5.5.340.0070.03317.95
5.5.330.0030.04720.15
5.5.320.0030.04020.34
5.5.310.0330.07320.21
5.5.300.0100.08017.98
5.5.290.0100.08017.91
5.5.280.0130.05020.89
5.5.270.0070.08020.97
5.5.260.0070.08720.88
5.5.250.0100.04720.70
5.5.240.0070.07020.25
5.4.450.0470.04719.11
5.4.440.0700.04319.57
5.4.430.0230.05019.20
5.4.420.0330.05019.42
5.4.410.0370.04319.36
5.4.400.0500.03718.81
5.4.390.0300.05019.09
5.4.380.0130.07018.70
5.4.370.0270.08318.66
5.4.360.0230.05718.47
5.4.350.0630.04318.64
5.4.340.0500.05318.54
5.4.320.0100.04412.45
5.4.310.0050.03912.45
5.4.300.0100.04812.45
5.4.290.0100.03512.45
5.4.280.0060.03512.35
5.4.270.0070.03512.35
5.4.260.0040.03912.35
5.4.250.0050.04412.35
5.4.240.0090.04312.35
5.4.230.0060.03812.34
5.4.220.0050.03712.34
5.4.210.0050.03612.34
5.4.200.0070.05212.34
5.4.190.0070.04512.34
5.4.180.0070.05112.34
5.4.170.0070.04612.35
5.4.160.0060.03712.34
5.4.150.0080.03512.34
5.4.140.0070.03612.02
5.4.130.0080.03312.01
5.4.120.0040.03811.97
5.4.110.0040.03811.96
5.4.100.0060.03511.97
5.4.90.0040.03911.96
5.4.80.0050.03811.96
5.4.70.0040.04111.96
5.4.60.0060.04811.96
5.4.50.0050.04311.96
5.4.40.0060.03811.95
5.4.30.0060.03611.94
5.4.20.0060.03511.94
5.4.10.0060.03411.95
5.4.00.0030.03811.44
5.3.290.0080.04112.80
5.3.280.0090.04512.71
5.3.270.0080.04312.72
5.3.260.0100.04112.72
5.3.250.0110.03412.72
5.3.240.0060.03812.72
5.3.230.0060.03812.71
5.3.220.0060.03812.68
5.3.210.0060.03912.68
5.3.200.0040.04012.68
5.3.190.0100.03512.68
5.3.180.0050.03812.67
5.3.170.0070.03612.67
5.3.160.0050.04012.67
5.3.150.0060.04412.67
5.3.140.0090.03512.66
5.3.130.0080.03912.66
5.3.120.0060.04012.66
5.3.110.0070.04312.66
5.3.100.0040.03812.12
5.3.90.0060.03612.08
5.3.80.0100.03312.07
5.3.70.0070.03912.07
5.3.60.0030.03812.07
5.3.50.0050.03812.00
5.3.40.0060.03612.00
5.3.30.0030.03811.95
5.3.20.0050.03611.74
5.3.10.0080.03611.70
5.3.00.0020.03911.69
5.2.170.0040.0339.19
5.2.160.0020.0329.19
5.2.150.0040.0329.19
5.2.140.0040.0329.19
5.2.130.0060.0299.14
5.2.120.0040.0379.14
5.2.110.0080.0269.16
5.2.100.0050.0299.15
5.2.90.0080.0409.15
5.2.80.0040.0589.14
5.2.70.0080.0429.14
5.2.60.0070.0389.10
5.2.50.0030.0339.07
5.2.40.0070.0269.05
5.2.30.0030.0329.03
5.2.20.0060.0289.02
5.2.10.0020.0338.92
5.2.00.0050.0418.78
5.1.60.0060.0328.06
5.1.50.0060.0248.05
5.1.40.0070.0258.04
5.1.30.0070.0358.39
5.1.20.0070.0348.41
5.1.10.0100.0288.14
5.1.00.0080.0328.14
5.0.50.0040.0216.62
5.0.40.0040.0236.48
5.0.30.0050.0306.29
5.0.20.0050.0186.26
5.0.10.0040.0206.24
5.0.00.0030.0316.23
4.4.90.0020.0174.78
4.4.80.0040.0154.75
4.4.70.0020.0184.75
4.4.60.0050.0144.75
4.4.50.0030.0164.77
4.4.40.0040.0264.71
4.4.30.0020.0174.76
4.4.20.0040.0154.85
4.4.10.0040.0154.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0164.67
4.3.90.0010.0164.63
4.3.80.0040.0244.59
4.3.70.0030.0144.63
4.3.60.0060.0114.63
4.3.50.0060.0174.63
4.3.40.0040.0304.54
4.3.30.0010.0163.28
4.3.20.0010.0173.26
4.3.10.0020.0193.22
4.3.00.0130.01315.95

preferences:
47.84 ms | 401 KiB | 5 Q