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 "\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.0070.00716.75
8.3.50.0110.00822.94
8.3.40.0070.01118.93
8.3.30.0070.01118.94
8.3.20.0030.00620.39
8.3.10.0040.00423.30
8.3.00.0030.00619.38
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0000.01420.35
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0000.00821.22
8.2.110.0090.00022.34
8.2.100.0090.00317.91
8.2.90.0080.00019.27
8.2.80.0050.00517.97
8.2.70.0110.00017.63
8.2.60.0000.01018.04
8.2.50.0000.00918.07
8.2.40.0040.00418.16
8.2.30.0080.00018.10
8.2.20.0070.00017.90
8.2.10.0040.00418.04
8.2.00.0050.00317.96
8.1.280.0100.00725.92
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00423.85
8.1.230.0040.00720.93
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0100.00317.36
8.1.190.0000.00917.25
8.1.180.0030.00518.10
8.1.170.0060.00318.61
8.1.160.0000.00721.84
8.1.150.0040.00418.90
8.1.140.0050.00317.50
8.1.130.0030.00317.77
8.1.120.0050.00317.57
8.1.110.0000.00817.48
8.1.100.0070.00017.46
8.1.90.0000.00817.50
8.1.80.0070.00017.60
8.1.70.0050.00317.47
8.1.60.0030.00517.73
8.1.50.0040.00417.61
8.1.40.0040.00417.69
8.1.30.0080.00017.73
8.1.20.0040.00417.77
8.1.10.0070.00017.61
8.1.00.0040.00417.51
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.48
8.0.270.0030.00316.97
8.0.260.0060.00017.22
8.0.250.0070.00017.11
8.0.240.0040.00417.16
8.0.230.0060.00316.88
8.0.220.0030.00316.99
8.0.210.0070.00017.05
8.0.200.0070.00017.05
8.0.190.0090.00017.04
8.0.180.0090.00017.05
8.0.170.0000.00716.98
8.0.160.0000.00717.00
8.0.150.0050.00216.93
8.0.140.0040.00416.91
8.0.130.0000.00613.39
8.0.120.0030.00517.05
8.0.110.0000.00916.95
8.0.100.0050.00216.90
8.0.90.0040.00416.94
8.0.80.0060.01017.03
8.0.70.0080.00017.05
8.0.60.0000.00717.03
8.0.50.0000.00716.96
8.0.30.0130.00717.12
8.0.20.0110.00917.40
8.0.10.0050.00217.11
8.0.00.0080.01117.02
7.4.330.0050.00015.11
7.4.320.0030.00316.72
7.4.300.0030.00316.74
7.4.290.0000.00716.75
7.4.280.0040.00416.83
7.4.270.0000.00716.84
7.4.260.0070.00016.78
7.4.250.0040.00416.82
7.4.240.0040.00416.81
7.4.230.0000.00716.83
7.4.220.0130.00716.79
7.4.210.0030.01316.93
7.4.200.0030.00516.81
7.4.160.0070.00716.64
7.4.150.0180.00017.40
7.4.140.0120.01117.86
7.4.130.0090.00916.67
7.4.120.0130.00416.70
7.4.110.0110.01116.55
7.4.100.0140.00416.55
7.4.90.0100.01316.68
7.4.80.0070.01119.39
7.4.70.0150.00916.86
7.4.60.0000.01716.69
7.4.50.0100.00016.51
7.4.40.0070.01016.61
7.4.30.0070.01016.75
7.4.00.0080.00515.12
7.3.330.0000.00513.27
7.3.320.0000.00513.43
7.3.310.0000.00716.38
7.3.300.0000.00716.33
7.3.290.0070.01016.38
7.3.280.0090.01016.36
7.3.270.0140.00417.40
7.3.260.0070.01416.48
7.3.250.0080.01016.57
7.3.240.0070.01716.71
7.3.230.0000.01716.68
7.3.210.0110.00516.51
7.3.200.0060.01219.39
7.3.190.0040.01816.75
7.3.180.0160.00016.68
7.3.170.0110.01116.43
7.3.160.0120.00916.38
7.3.10.0030.01316.60
7.3.00.0100.00616.63
7.2.330.0090.00916.79
7.2.320.0100.00716.88
7.2.310.0160.00716.76
7.2.300.0100.00716.84
7.2.290.0100.01316.75
7.2.130.0060.00617.17
7.2.120.0050.00516.89
7.2.110.0070.00717.08
7.2.100.0080.00816.98
7.2.90.0100.00016.77
7.2.80.0080.00817.02
7.2.70.0070.01017.04
7.2.60.0110.00717.02
7.2.50.0090.00617.22
7.2.40.0060.00616.86
7.2.30.0030.00617.04
7.2.20.0040.00817.05
7.2.10.0080.00416.68
7.2.00.0070.00618.32
7.1.250.0070.00716.00
7.1.100.0030.00618.26
7.1.70.0050.00217.49
7.1.60.0030.02119.40
7.1.50.0100.01017.07
7.1.00.0030.07322.49
7.0.200.0100.00016.90
7.0.140.0070.06322.05
7.0.110.0070.08320.05
7.0.100.0100.07720.01
7.0.90.0100.06719.90
7.0.80.0100.07720.04
7.0.70.0070.04319.82
7.0.60.0130.06319.91
7.0.50.0070.05720.50
7.0.40.0070.04720.16
7.0.30.0070.08720.03
7.0.20.0070.06020.28
7.0.10.0070.08720.22
7.0.00.0000.08320.08
5.6.280.0030.07320.99
5.6.250.0030.08320.62
5.6.240.0000.08720.86
5.6.230.0070.04720.68
5.6.220.0030.04720.69
5.6.210.0070.04320.60
5.6.200.0030.08320.95
5.6.190.0200.07321.05
5.6.180.0170.06021.14
5.6.170.0100.08021.29
5.6.160.0030.05021.19
5.6.150.0200.06721.07
5.6.140.0130.08021.08
5.6.130.0030.09321.26
5.6.120.0070.08321.26
5.6.110.0200.08321.11
5.6.100.0070.09021.17
5.6.90.0200.07320.88
5.6.80.0100.07320.34
5.6.70.0100.07720.32
5.6.60.0100.08020.58
5.6.50.0200.06720.34
5.6.40.0100.07020.42
5.6.30.0200.07020.34
5.6.20.0070.07320.28
5.6.10.0070.05020.54
5.6.00.0070.07320.41
5.5.380.0170.06720.41
5.5.370.0030.07320.57
5.5.360.0100.07720.45
5.5.350.0030.04320.51
5.5.340.0130.07320.82
5.5.330.0200.07020.86
5.5.320.0170.06320.86
5.5.310.0070.07720.97
5.5.300.0070.06320.98
5.5.290.0070.08020.94
5.5.280.0070.04320.69
5.5.270.0230.06320.98
5.5.260.0130.07720.88
5.5.250.0030.09020.55
5.5.240.0130.07320.19
5.5.230.0030.08020.18
5.5.220.0100.07320.18
5.5.210.0130.07320.29
5.5.200.0070.08020.34
5.5.190.0030.07720.18
5.5.180.0130.07020.13
5.5.160.0130.06320.25
5.5.150.0030.08320.33
5.5.140.0130.06020.36
5.5.130.0030.07020.25
5.5.120.0170.06720.38
5.5.110.0070.07020.08
5.5.100.0100.05320.20
5.5.90.0100.07320.01
5.5.80.0130.06720.27
5.5.70.0070.07320.04
5.5.60.0130.07020.00
5.5.50.0070.07720.03
5.5.40.0170.07320.03
5.5.30.0070.07320.25
5.5.20.0070.05320.07
5.5.10.0070.08020.11
5.5.00.0100.05020.23
5.4.450.0130.06719.58
5.4.440.0100.07719.44
5.4.430.0100.06719.32
5.4.420.0030.08719.46
5.4.410.0130.06719.30
5.4.400.0070.04319.27
5.4.390.0070.07719.07
5.4.380.0030.08019.25
5.4.370.0130.07019.18
5.4.360.0070.07018.95
5.4.350.0030.04019.12
5.4.340.0100.06719.13
5.4.320.0130.07319.20
5.4.310.0130.07019.14
5.4.300.0070.07318.98
5.4.290.0130.07018.98
5.4.280.0070.08019.11
5.4.270.0030.08018.98
5.4.260.0130.07019.17
5.4.250.0030.08019.15
5.4.240.0170.06019.11
5.4.230.0070.07018.94
5.4.220.0070.08018.95
5.4.210.0030.08019.27
5.4.200.0070.06719.15
5.4.190.0100.07018.93
5.4.180.0130.07018.97
5.4.170.0030.05319.16
5.4.160.0030.03718.93
5.4.150.0000.04719.14
5.4.140.0000.04016.22
5.4.130.0030.03716.25
5.4.120.0000.04016.57
5.4.110.0030.03316.58
5.4.100.0070.03316.43
5.4.90.0030.03316.29
5.4.80.0000.03716.57
5.4.70.0000.03716.41
5.4.60.0070.05716.38
5.4.50.0030.03316.25
5.4.40.0000.04016.16
5.4.30.0000.07016.46
5.4.20.0070.04016.37
5.4.10.0070.06316.10
5.4.00.0000.05015.66
5.3.290.0200.04714.76
5.3.280.0070.07014.44
5.3.270.0100.07314.54
5.3.260.0070.03714.55
5.3.250.0070.04714.67
5.3.240.0130.04014.66
5.3.230.0070.03314.54
5.3.220.0030.03714.43
5.3.210.0000.04014.49
5.3.200.0000.03714.57
5.3.190.0100.05314.63
5.3.180.0000.03714.50
5.3.170.0070.03314.41
5.3.160.0030.05714.43
5.3.150.0030.06714.48
5.3.140.0070.07314.34
5.3.130.0030.06314.37
5.3.120.0030.07014.48
5.3.110.0070.07014.43
5.3.100.0030.03313.89
5.3.90.0070.03013.90
5.3.80.0030.03314.03
5.3.70.0070.04313.90
5.3.60.0030.04713.93
5.3.50.0000.03713.83
5.3.40.0000.05013.95
5.3.30.0100.03713.81
5.3.20.0030.03313.49
5.3.10.0000.04713.53
5.3.00.0030.06313.49
5.2.170.0100.03311.06
5.2.160.0000.03311.20
5.2.150.0030.02711.20
5.2.140.0000.03711.30
5.2.130.0070.02311.02
5.2.120.0000.03011.17
5.2.110.0000.05010.89
5.2.100.0030.06311.09
5.2.90.0100.03710.89
5.2.80.0030.03711.05
5.2.70.0000.03011.02
5.2.60.0030.05710.98
5.2.50.0030.03011.00
5.2.40.0070.03010.91
5.2.30.0000.05711.00
5.2.20.0100.05310.91
5.2.10.0030.02710.93
5.2.00.0000.03010.71
5.1.60.0030.0239.90
5.1.50.0030.0279.93
5.1.40.0000.02710.13
5.1.30.0100.02310.28
5.1.20.0000.02710.25
5.1.10.0030.02310.08
5.1.00.0000.02710.00
5.0.50.0030.0208.49
5.0.40.0030.0178.38
5.0.30.0030.0408.20
5.0.20.0000.0208.17
5.0.10.0000.0238.24
5.0.00.0000.0438.15
4.4.90.0000.0178.11
4.4.80.0000.0178.11
4.4.70.0030.0138.11
4.4.60.0000.0178.11
4.4.50.0030.0138.11
4.4.40.0000.0238.11
4.4.30.0000.0238.11
4.4.20.0000.0308.11
4.4.10.0070.0178.11
4.4.00.0000.0238.11
4.3.110.0030.0138.11
4.3.100.0030.0138.11
4.3.90.0030.0138.11
4.3.80.0000.0308.11
4.3.70.0030.0308.11
4.3.60.0000.0138.11
4.3.50.0070.0278.11
4.3.40.0030.0538.11
4.3.30.0070.0178.11
4.3.20.0030.0338.11
4.3.10.0000.0378.11
4.3.00.0000.0378.11

preferences:
56.21 ms | 401 KiB | 5 Q