3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _remove_between($tag,$subject) { return preg_replace("/".$tag."[\S\s.]+?".$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('<!--WRAPPERSTART-->',$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.0070.01016.50
8.3.50.0110.00822.01
8.3.40.0110.00419.02
8.3.30.0040.01119.09
8.3.20.0070.00020.38
8.3.10.0080.00023.66
8.3.00.0100.00317.71
8.2.180.0090.00917.00
8.2.170.0090.00622.96
8.2.160.0000.01320.39
8.2.150.0000.00924.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.25
8.2.110.0100.00722.20
8.2.100.0070.00717.81
8.2.90.0080.00019.13
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0080.00017.80
8.2.50.0040.00419.61
8.2.40.0080.00019.89
8.2.30.0040.00418.13
8.2.20.0030.00617.95
8.2.10.0000.00818.06
8.2.00.0000.00918.00
8.1.280.0040.01225.92
8.1.270.0000.00724.02
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0050.00523.91
8.1.230.0030.00719.04
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.38
8.1.180.0070.00318.10
8.1.170.0000.00818.76
8.1.160.0070.00022.15
8.1.150.0040.00418.80
8.1.140.0040.00417.60
8.1.130.0000.00717.87
8.1.120.0070.00017.59
8.1.110.0040.00417.46
8.1.100.0040.00417.44
8.1.90.0070.00017.60
8.1.80.0040.00317.54
8.1.70.0000.00717.61
8.1.60.0000.00917.74
8.1.50.0030.00517.66
8.1.40.0000.00817.67
8.1.30.0030.00617.60
8.1.20.0040.00417.77
8.1.10.0050.00317.66
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0080.00017.05
8.0.280.0030.00318.37
8.0.270.0000.00717.16
8.0.260.0030.00317.13
8.0.250.0000.00717.08
8.0.240.0050.00217.10
8.0.230.0000.00717.13
8.0.220.0000.00816.95
8.0.210.0050.00217.01
8.0.200.0030.00317.14
8.0.190.0000.00817.01
8.0.180.0040.00416.98
8.0.170.0030.00617.03
8.0.160.0070.00017.09
8.0.150.0040.00417.01
8.0.140.0000.00717.00
8.0.130.0030.00313.46
8.0.120.0070.00017.09
8.0.110.0080.00017.05
8.0.100.0030.00516.91
8.0.90.0000.00817.01
8.0.80.0090.00617.04
8.0.70.0050.00217.10
8.0.60.0030.00616.89
8.0.50.0030.00517.08
8.0.30.0110.00917.38
8.0.20.0120.00617.40
8.0.10.0070.00016.94
8.0.00.0140.00717.05
7.4.330.0000.00515.02
7.4.320.0030.00316.70
7.4.300.0060.00016.80
7.4.290.0030.00316.79
7.4.280.0000.00716.69
7.4.270.0000.00816.82
7.4.260.0030.00316.69
7.4.250.0040.00416.58
7.4.240.0020.00516.76
7.4.230.0040.00416.63
7.4.220.0070.01016.68
7.4.210.0100.00716.73
7.4.200.0080.00016.90
7.4.190.0030.00316.88
7.4.160.0090.00916.45
7.4.150.0080.01617.40
7.4.140.0140.00517.86
7.4.130.0100.00816.76
7.4.120.0100.00616.66
7.4.110.0100.01316.70
7.4.100.0080.01416.62
7.4.90.0080.01116.69
7.4.80.0060.01319.39
7.4.70.0170.00016.75
7.4.60.0080.00916.56
7.4.50.0040.00416.73
7.4.40.0060.01616.55
7.4.30.0090.00916.55
7.4.10.0040.01215.20
7.4.00.0090.00815.08
7.3.330.0060.00013.30
7.3.320.0060.00013.33
7.3.310.0000.00816.48
7.3.300.0050.00316.48
7.3.290.0030.01716.39
7.3.280.0060.01016.48
7.3.270.0140.00317.40
7.3.260.0130.00316.77
7.3.250.0080.01116.76
7.3.240.0030.01516.58
7.3.230.0060.01016.49
7.3.210.0080.01116.49
7.3.200.0060.01219.39
7.3.190.0150.00616.78
7.3.180.0030.01316.82
7.3.170.0030.01216.71
7.3.160.0100.01316.71
7.3.130.0000.01814.84
7.3.120.0020.01315.11
7.3.110.0120.00614.79
7.3.100.0100.00315.24
7.3.90.0030.01015.20
7.3.80.0060.00915.04
7.3.70.0030.00714.89
7.3.60.0060.00615.08
7.3.50.0030.00615.08
7.3.40.0030.00914.83
7.3.30.0030.00614.73
7.3.20.0040.00816.69
7.3.10.0080.00516.68
7.3.00.0060.00816.75
7.2.330.0040.01916.89
7.2.320.0060.01116.89
7.2.310.0110.00716.85
7.2.300.0040.01416.87
7.2.290.0040.01916.86
7.2.260.0030.01215.33
7.2.250.0100.00715.10
7.2.240.0060.00915.00
7.2.230.0000.01714.80
7.2.220.0050.00514.96
7.2.210.0040.01115.30
7.2.200.0070.00715.15
7.2.190.0080.00815.20
7.2.180.0000.01515.05
7.2.170.0070.01015.22
7.2.160.0100.00014.98
7.2.150.0060.00317.04
7.2.140.0070.01016.84
7.2.130.0050.01017.01
7.2.120.0050.00716.78
7.2.110.0460.00416.67
7.2.100.0090.00816.84
7.2.90.0080.00317.03
7.2.80.0080.00516.68
7.2.70.0070.00916.90
7.2.60.0050.00817.02
7.2.50.0000.01316.98
7.2.40.0040.00817.12
7.2.30.0070.00717.06
7.2.20.0020.01216.90
7.2.10.0080.00317.07
7.2.00.0050.01217.79
7.1.330.0060.00915.98
7.1.320.0030.01015.78
7.1.310.0070.00715.69
7.1.300.0090.00615.84
7.1.290.0090.00615.82
7.1.280.0060.00815.90
7.1.270.0040.01116.17
7.1.260.0000.01416.20
7.1.250.0070.00515.85
7.1.240.0110.00415.75
7.1.230.0030.01016.07
7.1.220.0080.00816.04
7.1.210.0090.00916.07
7.1.200.0020.01316.01
7.1.190.0080.00616.12
7.1.180.0090.00915.95
7.1.170.0000.01215.92
7.1.160.0040.00716.01
7.1.150.0070.00715.64
7.1.140.0040.00416.15
7.1.130.0030.00615.98
7.1.120.0000.01215.68
7.1.110.0030.01016.16
7.1.100.0090.00517.36
7.1.90.0110.00415.68
7.1.80.0030.01315.96
7.1.70.0050.00516.69
7.1.60.0080.01117.75
7.1.50.0030.01216.52
7.1.40.0060.00315.98
7.1.30.0080.00315.91
7.1.20.0030.00615.93
7.1.10.0000.01016.03
7.1.00.0030.04319.26
7.0.330.0050.00515.67
7.0.320.0070.00715.57
7.0.310.0030.00715.68
7.0.300.0080.00615.49
7.0.290.0130.00015.67
7.0.280.0040.00915.48
7.0.270.0000.01115.67
7.0.260.0080.00015.68
7.0.250.0100.00315.72
7.0.240.0060.00615.45
7.0.230.0030.01015.41
7.0.220.0030.00615.66
7.0.210.0000.01015.56
7.0.200.0050.00716.21
7.0.190.0060.00915.42
7.0.180.0030.00615.56
7.0.170.0030.01015.52
7.0.160.0100.00315.32
7.0.150.0060.01115.80
7.0.140.0080.03318.81
7.0.130.0030.00615.59
7.0.120.0100.00315.42
7.0.110.0080.00415.68
7.0.100.0120.02517.75
7.0.90.0140.01917.60
7.0.80.0100.01717.72
7.0.70.0110.02217.80
7.0.60.0220.03717.71
7.0.50.0050.02817.84
7.0.40.0030.02916.89
7.0.30.0100.04116.77
7.0.20.0100.02516.76
7.0.10.0070.04616.84
7.0.00.0070.04216.89
5.6.400.0040.01114.50
5.6.390.0120.00014.25
5.6.380.0160.00314.24
5.6.370.0000.01214.45
5.6.360.0040.00414.64
5.6.350.0060.01014.64
5.6.340.0120.00314.52
5.6.330.0090.00614.39
5.6.320.0000.01714.49
5.6.310.0000.01114.65
5.6.300.0090.00614.69
5.6.290.0080.00814.62
5.6.280.0010.04117.57
5.6.270.0060.00914.46
5.6.260.0040.01214.76
5.6.250.0060.02517.52
5.6.240.0030.02817.46
5.6.230.0030.02117.50
5.6.220.0060.02117.51
5.6.210.0030.02517.56
5.6.200.0080.02617.65
5.6.190.0040.02517.76
5.6.180.0030.02617.53
5.6.170.0030.04817.67
5.6.160.0110.02617.62
5.6.150.0020.04517.59
5.6.140.0060.04517.83
5.6.130.0050.04617.80
5.6.120.0070.04917.85
5.6.110.0060.04817.75
5.6.100.0120.04017.61
5.6.90.0090.03117.84
5.6.80.0020.04717.42
5.6.70.0070.03417.33
5.6.60.0050.04517.31
5.6.50.0070.04017.31
5.6.40.0070.04217.37
5.6.30.0040.03917.42
5.6.20.0080.04217.31
5.6.10.0140.02717.30
5.6.00.0060.02517.44
5.5.380.0030.02517.50
5.5.370.0040.02317.45
5.5.360.0070.02017.37
5.5.350.0020.02617.37
5.5.340.0080.03817.61
5.5.330.0080.02417.36
5.5.320.0000.02717.49
5.5.310.0020.05017.65
5.5.300.0070.04417.50
5.5.290.0050.04317.55
5.5.280.0060.02617.69
5.5.270.0100.04617.52
5.5.260.0080.04217.70
5.5.250.0080.04517.42
5.5.240.0090.02317.32
5.5.230.0070.04117.21
5.5.220.0070.04317.17
5.5.210.0030.02517.26
5.5.200.0050.04317.25
5.5.190.0100.03017.13
5.5.180.0060.03617.09
5.5.170.0070.01014.36
5.5.160.0090.03617.20
5.5.150.0030.04717.16
5.5.140.0070.03817.26
5.5.130.0070.04217.14
5.5.120.0130.03517.28
5.5.110.0160.03317.11
5.5.100.0030.03517.12
5.5.90.0080.03917.14
5.5.80.0080.04417.19
5.5.70.0080.03817.03
5.5.60.0090.03317.24
5.5.50.0020.04517.17
5.5.40.0090.03716.94
5.5.30.0050.04217.27
5.5.20.0070.04417.20
5.5.10.0100.03616.99
5.5.00.0110.03717.26
5.4.450.0050.03815.28
5.4.440.0100.03615.05
5.4.430.0050.03315.25
5.4.420.0140.03015.20
5.4.410.0050.04015.19
5.4.400.0070.03915.21
5.4.390.0030.03815.05
5.4.380.0050.04414.95
5.4.370.0020.04715.05
5.4.360.0070.04015.16
5.4.350.0070.03215.10
5.4.340.0040.03015.05
5.4.330.0070.00011.14
5.4.320.0060.04115.03
5.4.310.0030.03915.12
5.4.300.0020.04315.22
5.4.290.0030.03215.07
5.4.280.0030.04415.07
5.4.270.0060.04115.05
5.4.260.0050.04015.03
5.4.250.0020.04714.96
5.4.240.0100.03815.19
5.4.230.0070.03714.95
5.4.220.0100.04015.06
5.4.210.0070.03815.16
5.4.200.0080.03815.15
5.4.190.0050.03814.93
5.4.180.0120.03714.94
5.4.170.0060.04115.15
5.4.160.0080.03714.96
5.4.150.0050.03315.07
5.4.140.0020.03313.91
5.4.130.0060.03913.59
5.4.120.0070.03813.66
5.4.110.0060.03713.85
5.4.100.0030.04013.72
5.4.90.0030.04413.85
5.4.80.0030.03313.67
5.4.70.0080.03013.67
5.4.60.0020.02513.71
5.4.50.0050.03513.81
5.4.40.0080.02513.71
5.4.30.0030.02813.83
5.4.20.0050.03013.73
5.4.10.0070.03913.65
5.4.00.0020.03413.48
5.3.290.0030.03512.70
5.3.280.0040.04412.62
5.3.270.0070.03512.70
5.3.260.0090.02812.51
5.3.250.0020.03612.57
5.3.240.0050.04512.59
5.3.230.0070.03912.50
5.3.220.0070.04212.55
5.3.210.0080.04012.39
5.3.200.0030.02512.57
5.3.190.0070.03812.54
5.3.180.0030.03312.70
5.3.170.0050.03312.61
5.3.160.0080.03312.63
5.3.150.0040.03612.64
5.3.140.0020.02912.66
5.3.130.0070.04412.53
5.3.120.0050.04312.49
5.3.110.0060.04112.59
5.3.100.0080.02012.28
5.3.90.0090.03212.23
5.3.80.0030.03312.13
5.3.70.0090.03712.11
5.3.60.0080.02812.25
5.3.50.0030.04012.16
5.3.40.0090.03412.19
5.3.30.0030.02312.23
5.3.20.0030.02812.08
5.3.10.0080.03712.02
5.3.00.0050.03811.90
5.2.170.0070.05311.21
5.2.160.0070.03711.20
5.2.150.0030.06011.26
5.2.140.0070.02711.21
5.2.130.0100.05311.03
5.2.120.0070.04311.18
5.2.110.0130.05311.17
5.2.100.0030.04711.13
5.2.90.0070.03711.00
5.2.80.0070.05711.21
5.2.70.0130.05311.14
5.2.60.0030.05310.92
5.2.50.0070.06010.96
5.2.40.0000.07311.12
5.2.30.0100.06010.90
5.2.20.0070.05711.00
5.2.10.0100.05010.91
5.2.00.0170.05010.83
5.1.60.0100.04710.08
5.1.50.0030.05310.10
5.1.40.0070.0509.81
5.1.30.0000.04010.36
5.1.20.0070.05010.50
5.1.10.0030.05010.15
5.1.00.0070.05310.18
5.0.50.0030.0479.44
5.0.40.0070.0279.44
5.0.30.0030.0709.44
5.0.20.0000.0379.44
5.0.10.0100.0339.44
5.0.00.0000.0609.44
4.4.90.0070.0339.44
4.4.80.0000.0409.44
4.4.70.0030.0309.44
4.4.60.0000.0339.44
4.4.50.0030.0309.44
4.4.40.0070.0509.44
4.4.30.0030.0379.44
4.4.20.0000.0309.44
4.4.10.0030.0379.44
4.4.00.0000.0509.44
4.3.110.0000.0409.44
4.3.100.0030.0339.44
4.3.90.0000.0279.44
4.3.80.0030.0539.44
4.3.70.0000.0379.44
4.3.60.0000.0339.44
4.3.50.0000.0309.44
4.3.40.0030.0539.44
4.3.30.0030.0339.44
4.3.20.0000.0309.44
4.3.10.0070.0309.44
4.3.00.0070.0309.44

preferences:
43.49 ms | 401 KiB | 5 Q