3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _remove_between($tag,$subject) { return preg_replace("/".$tag.".+?".$tag."/i", "", $subject); } $html = '{% load ad_tags %}{% load smart_if %}<div id="wrapper">{% set_list 1 2 as sub_0_range %}{% set_list 3 4 5 6 7 8 9 as sub_1_range %}{% for ad in ads %}{% if forloop.counter in sub_0_range %}<div class="sub_0">{% if forloop.counter == sub_0_range.0 %}<div id="header"> <h1>Great Auto Insurance Rates!</h1> <h2>Click on a handful of the companies below to get your rates.</h2> </div><div id="featured-listings"> <p class="listing-grp-title"><strong>Featured Insurance Providers</strong></p>{% endif %} <!--WRAPPERSTART--><div id="header"> <h1>Great Auto Insurance Rates!</h1> <h2>Click on a handful of the companies below to get your rates.</h2> </div><div id="featured-listings"> <p class="listing-grp-title"><strong>Featured Insurance Providers</strong></p><!--WRAPPERSTART--> <div class="featured-wrap"> <div class="star"><img src="http://dev-15-php.datalot.com/images/ad_temp/star.png" alt="star" /></div> <div class="container"> <div class="logo"> <a href=""><img src="http://dev-15-php.datalot.com/images/ad_temp/feature-logo2.png" alt="" /></a> </div> <div class="copy"> <p class="headline"><a href="">{{ad.headline|safe}}</a></p> {{ad.body|safe}} </div> <div class="btn"><a href=""><img src="http://dev-15-php.datalot.com/images/ad_temp/button_top3.gif" alt="Free Quote" /></a></div> <div class="clear"></div> </div> </div> <div class="clear"></div> {% if forloop.counter == sub_0_range|last or forloop.last %}</div>{% endif %}</div>{% else %}{% if forloop.counter in sub_1_range %}<div class="sub_1">{% if forloop.counter == sub_1_range.0 %}<div id="top-listings">{% endif %} <div class="top-wrap"> <div><p class="number">{{forloop.counter|add:-2}}</p></div> <div class="container"> <div class="logo"> <a href=""><img class="featured-logo" src="http://dev-15-php.datalot.com/images/ad_temp/feature-logo2.png" alt="" /></a> </div> <div class="copy"> <p class="headline"><a href="">{{ad.headline|safe}}</a></p> {{ad.body|safe}} </div> <div class="btn"><a href=""><img src="http://dev-15-php.datalot.com/images/ad_temp/button_top3.gif" alt="Free Quote" /></a></div> <div class="clear"></div> </div> <div class="clear"></div> </div> {% if forloop.counter == sub_1_range|last or forloop.last %}</div></div>{% endif %}</div>{% else %}<!-- DEFAULT --><!-- DEFAULT -->{% endif %}{% endif %}{% endfor %}</div>'; $html = _remove_between('<!--WRAPPEREND-->',$html); echo $html;

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.0160.00016.74
8.3.50.0080.01122.12
8.3.40.0110.00418.99
8.3.30.0040.01119.05
8.3.20.0040.00420.34
8.3.10.0080.00023.64
8.3.00.0040.00817.63
8.2.180.0100.01018.41
8.2.170.0150.00022.96
8.2.160.0030.01320.50
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.09
8.2.110.0040.00422.13
8.2.100.0080.00417.91
8.2.90.0030.00819.22
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0000.00917.93
8.2.50.0000.00818.07
8.2.40.0080.00017.90
8.2.30.0000.00718.08
8.2.20.0000.00817.89
8.2.10.0070.00018.06
8.2.00.0000.00717.88
8.1.280.0090.00925.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.82
8.1.230.0070.00419.21
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0030.00517.48
8.1.180.0030.00618.10
8.1.170.0040.00418.65
8.1.160.0050.00222.03
8.1.150.0000.00718.84
8.1.140.0040.00417.48
8.1.130.0050.00317.85
8.1.120.0000.00717.48
8.1.110.0060.00317.64
8.1.100.0040.00417.52
8.1.90.0030.00417.50
8.1.80.0000.00817.62
8.1.70.0000.00717.55
8.1.60.0050.00617.62
8.1.50.0000.00817.70
8.1.40.0040.00417.57
8.1.30.0000.00917.68
8.1.20.0000.00717.86
8.1.10.0050.00217.72
8.1.00.0000.00817.65
8.0.300.0050.00218.77
8.0.290.0000.00717.05
8.0.280.0030.00318.39
8.0.270.0080.00017.23
8.0.260.0040.00417.27
8.0.250.0000.00717.00
8.0.240.0040.00417.10
8.0.230.0030.00317.12
8.0.220.0020.00516.91
8.0.210.0030.00516.93
8.0.200.0000.00717.06
8.0.190.0040.00417.15
8.0.180.0040.00417.05
8.0.170.0030.00517.02
8.0.160.0000.00716.92
8.0.150.0000.00716.94
8.0.140.0040.00416.95
8.0.130.0000.00613.48
8.0.120.0040.00416.92
8.0.110.0040.00417.05
8.0.100.0040.00417.02
8.0.90.0040.00417.10
8.0.80.0140.00717.08
8.0.70.0000.00717.07
8.0.60.0040.00416.93
8.0.50.0020.00516.89
8.0.30.0110.00817.39
8.0.20.0140.00517.51
8.0.10.0030.00517.13
8.0.00.0110.01216.77
7.4.330.0000.00515.15
7.4.320.0060.00016.73
7.4.300.0030.00316.71
7.4.290.0040.00416.79
7.4.280.0070.00016.85
7.4.270.0030.00316.70
7.4.260.0000.00716.84
7.4.250.0040.00416.75
7.4.240.0030.00316.73
7.4.230.0030.00316.81
7.4.220.0070.01016.66
7.4.210.0090.00716.71
7.4.200.0070.00016.72
7.4.190.0040.00416.77
7.4.160.0140.00316.66
7.4.150.0170.00017.40
7.4.140.0080.01017.86
7.4.130.0100.01116.75
7.4.120.0120.00516.67
7.4.110.0150.00816.86
7.4.100.0090.00916.75
7.4.90.0150.00416.88
7.4.80.0100.00719.39
7.4.70.0060.00916.62
7.4.60.0100.00916.55
7.4.50.0060.00316.61
7.4.40.0060.01216.70
7.4.30.0040.01216.79
7.4.00.0000.01615.12
7.3.330.0030.00313.46
7.3.320.0050.00013.45
7.3.310.0000.00716.46
7.3.300.0030.00316.54
7.3.290.0110.01116.45
7.3.280.0100.00916.41
7.3.270.0070.01017.40
7.3.260.0070.01016.80
7.3.250.0100.01016.65
7.3.240.0070.01016.86
7.3.230.0110.00516.50
7.3.210.0140.00316.45
7.3.200.0080.01119.39
7.3.190.0150.00316.57
7.3.180.0090.00916.51
7.3.170.0060.00916.82
7.3.160.0060.00916.73
7.3.120.0100.00614.75
7.3.10.0100.00316.70
7.3.00.0200.01016.32
7.2.330.0100.01316.81
7.2.320.0100.00716.80
7.2.310.0090.00916.87
7.2.300.0110.01117.00
7.2.290.0120.00617.09
7.2.130.0060.00817.16
7.2.120.0040.01516.95
7.2.110.0100.00716.63
7.2.100.0100.00716.72
7.2.90.0100.00717.04
7.2.80.0070.00616.79
7.2.70.0130.00816.79
7.2.60.0180.00717.07
7.2.50.0090.00616.91
7.2.40.0190.00016.84
7.2.30.0060.00617.01
7.2.20.0120.00417.03
7.2.10.0170.00016.74
7.2.00.0070.00818.47
7.1.250.0120.00615.38
7.1.100.0080.00418.26
7.1.70.0060.00317.53
7.1.60.0180.00017.55
7.1.50.0030.01317.04
7.1.00.0030.07722.59
7.0.200.0040.00816.93
7.0.140.0000.07722.09
7.0.60.0170.06719.79
7.0.50.0100.07717.90
7.0.40.0100.06320.42
7.0.30.0270.08320.18
7.0.20.0270.07320.26
7.0.10.0130.04720.09
7.0.00.0100.08320.10
5.6.210.0070.08020.66
5.6.200.0170.07018.18
5.6.190.0030.04720.47
5.6.180.0230.08720.50
5.6.170.0200.08320.56
5.6.160.0030.04720.59
5.6.150.0030.05718.18
5.6.140.0070.06318.15
5.6.130.0030.04018.21
5.6.120.0070.06021.00
5.6.110.0170.07021.05
5.6.100.0030.05020.99
5.6.90.0170.07720.98
5.6.80.0070.08020.39
5.6.70.4770.03720.45
5.5.350.0300.06720.39
5.5.340.0130.07318.08
5.5.330.0100.06020.34
5.5.320.0170.05320.35
5.5.310.0230.08720.27
5.5.300.0000.08318.04
5.5.290.0070.04718.04
5.5.280.0230.07020.78
5.5.270.0070.07320.77
5.5.260.0130.06720.77
5.5.250.0030.06020.68
5.5.240.0200.07320.38
5.4.450.0330.04719.58
5.4.440.0270.06719.63
5.4.430.0170.05319.45
5.4.420.0330.07019.69
5.4.410.0230.05019.42
5.4.400.0230.05019.26
5.4.390.0270.04319.06
5.4.380.0170.05018.60
5.4.370.0200.04718.75
5.4.360.0170.05018.64
5.4.350.0130.05318.59
5.4.340.0200.04718.53
5.4.320.0070.04912.51
5.4.310.0070.03812.50
5.4.300.0070.04012.51
5.4.290.0130.06512.50
5.4.280.0120.04912.39
5.4.270.0120.06812.40
5.4.260.0100.07512.39
5.4.250.0080.06212.40
5.4.240.0090.06512.40
5.4.230.0100.07512.39
5.4.220.0360.11712.39
5.4.210.0210.08012.39
5.4.200.0070.07512.39
5.4.190.0190.06712.39
5.4.180.0140.08112.39
5.4.170.0200.09612.39
5.4.160.0160.05712.39
5.4.150.0060.06912.39
5.4.140.0110.05312.07
5.4.130.0130.08812.06
5.4.120.0130.07712.02
5.4.110.0190.06812.01
5.4.100.0150.06212.01
5.4.90.0100.06112.02
5.4.80.0100.06312.01
5.4.70.0100.07012.01
5.4.60.0250.12712.01
5.4.50.0160.07812.01
5.4.40.0180.05912.00
5.4.30.0130.06211.99
5.4.20.0060.04011.99
5.4.10.0080.03711.99
5.4.00.0140.05511.49
5.3.290.0080.04012.80
5.3.280.0080.05512.70
5.3.270.0070.04412.72
5.3.260.0110.04912.72
5.3.250.0110.05712.71
5.3.240.0180.10612.72
5.3.230.0090.07212.71
5.3.220.0080.04212.68
5.3.210.0070.05712.68
5.3.200.0270.05512.68
5.3.190.0090.03912.68
5.3.180.0090.03812.67
5.3.170.0080.03812.67
5.3.160.0060.03912.67
5.3.150.0070.03912.67
5.3.140.0070.03812.66
5.3.130.0080.04012.66
5.3.120.0070.04512.66
5.3.110.0090.03912.66
5.3.100.0060.05012.13
5.3.90.0080.06012.11
5.3.80.0070.03812.11
5.3.70.0080.03912.11
5.3.60.0050.04312.09
5.3.50.0070.04112.04
5.3.40.0070.05112.04
5.3.30.0070.05112.00
5.3.20.0130.04811.78
5.3.10.0060.05311.74
5.3.00.0120.03711.73
5.2.170.0260.0369.24
5.2.160.0050.0359.24
5.2.150.0060.0319.24
5.2.140.0060.0359.23
5.2.130.0100.0309.20
5.2.120.0050.0399.20
5.2.110.0070.0409.20
5.2.100.0050.0359.20
5.2.90.0080.0389.20
5.2.80.0080.0429.20
5.2.70.0050.0409.20
5.2.60.0050.0319.14
5.2.50.0020.0349.12
5.2.40.0060.0299.10
5.2.30.0070.0459.07
5.2.20.0060.0309.06
5.2.10.0080.0418.95
5.2.00.0060.0468.81
5.1.60.0060.0388.09
5.1.50.0060.0378.09
5.1.40.0050.0398.07
5.1.30.0070.0468.42
5.1.20.0070.0388.44
5.1.10.0070.0268.16
5.1.00.0080.0368.17
5.0.50.0070.0266.64
5.0.40.0040.0246.51
5.0.30.0060.0616.32
5.0.20.0060.0296.28
5.0.10.0050.0256.26
5.0.00.0070.0406.25
4.4.90.0070.0314.77
4.4.80.0040.0234.75
4.4.70.0030.0304.75
4.4.60.0030.0234.76
4.4.50.0090.0194.77
4.4.40.0060.0354.71
4.4.30.0040.0234.76
4.4.20.0090.0274.84
4.4.10.0060.0274.84
4.4.00.0080.0374.76
4.3.110.0040.0244.67
4.3.100.0050.0174.66
4.3.90.0100.0404.64
4.3.80.0070.0324.58
4.3.70.0070.0204.63
4.3.60.0060.0264.62
4.3.50.0060.0344.63
4.3.40.0050.0354.54
4.3.30.0020.0233.30
4.3.20.0040.0253.29
4.3.10.0020.0213.24
4.3.00.0070.0207.23

preferences:
49.12 ms | 401 KiB | 5 Q