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('<!--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.0110.00716.88
8.3.50.0120.00318.05
8.3.40.0110.00318.81
8.3.30.0040.01418.98
8.3.20.0080.00020.30
8.3.10.0080.00023.56
8.3.00.0100.00017.38
8.2.180.0080.01218.29
8.2.170.0090.00622.96
8.2.160.0150.00420.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.08
8.2.110.0100.00722.12
8.2.100.0170.00417.84
8.2.90.0000.00819.28
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0080.00019.76
8.2.30.0050.00317.96
8.2.20.0080.00017.84
8.2.10.0060.00318.19
8.2.00.0000.00717.88
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00023.79
8.1.230.0070.00419.07
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.38
8.1.180.0030.00618.10
8.1.170.0000.00818.71
8.1.160.0000.00721.91
8.1.150.0040.00418.79
8.1.140.0070.00017.52
8.1.130.0030.00317.86
8.1.120.0040.00417.62
8.1.110.0000.00717.64
8.1.100.0040.00417.64
8.1.90.0040.00417.61
8.1.80.0040.00417.56
8.1.70.0030.00317.55
8.1.60.0060.00317.78
8.1.50.0050.00317.64
8.1.40.0080.00017.72
8.1.30.0000.00817.70
8.1.20.0040.00417.63
8.1.10.0050.00317.64
8.1.00.0080.00017.67
8.0.300.0020.00518.77
8.0.290.0070.00017.16
8.0.280.0070.00018.38
8.0.270.0070.00017.24
8.0.260.0060.00017.32
8.0.250.0000.00717.08
8.0.240.0000.00717.08
8.0.230.0000.00716.98
8.0.220.0040.00417.00
8.0.210.0080.00016.94
8.0.200.0060.00017.07
8.0.190.0040.00416.96
8.0.180.0080.00016.96
8.0.170.0000.00817.10
8.0.160.0050.00217.11
8.0.150.0000.00716.91
8.0.140.0040.00417.00
8.0.130.0000.00713.48
8.0.120.0040.00416.99
8.0.110.0080.00016.94
8.0.100.0050.00316.91
8.0.90.0000.00817.02
8.0.80.0110.01117.11
8.0.70.0030.00516.93
8.0.60.0040.00416.92
8.0.50.0000.00717.14
8.0.30.0100.01117.22
8.0.20.0080.01117.40
8.0.10.0070.00016.90
8.0.00.0150.00917.01
7.4.330.0000.00615.00
7.4.320.0070.00016.67
7.4.300.0030.00316.85
7.4.290.0030.00316.73
7.4.280.0000.00716.70
7.4.270.0000.00716.77
7.4.260.0000.00716.77
7.4.250.0050.00316.69
7.4.240.0020.00516.66
7.4.230.0000.00716.71
7.4.220.0070.01116.80
7.4.210.0070.00916.81
7.4.200.0080.00016.89
7.4.190.0000.00716.87
7.4.160.0110.00816.54
7.4.150.0140.00417.40
7.4.140.0100.00717.86
7.4.130.0070.01016.79
7.4.120.0090.00916.69
7.4.110.0100.00716.87
7.4.100.0080.01116.86
7.4.90.0070.01816.63
7.4.80.0160.00619.39
7.4.70.0060.01016.83
7.4.60.0120.01216.69
7.4.50.0030.00616.62
7.4.40.0040.01516.81
7.4.30.0090.00916.70
7.4.10.0030.01315.25
7.4.00.0070.00915.20
7.3.330.0060.00013.46
7.3.320.0050.00013.31
7.3.310.0080.00016.53
7.3.300.0000.00816.37
7.3.290.0160.00316.46
7.3.280.0100.01016.45
7.3.270.0130.00317.40
7.3.260.0130.00316.57
7.3.250.0060.01116.71
7.3.240.0070.01016.52
7.3.230.0060.01216.86
7.3.210.0090.00816.69
7.3.200.0090.01319.39
7.3.190.0050.01616.70
7.3.180.0090.00616.52
7.3.170.0130.00316.56
7.3.160.0080.00816.75
7.3.130.0090.00915.02
7.3.120.0060.01015.13
7.3.110.0040.01414.98
7.3.100.0050.01014.93
7.3.90.0070.01214.83
7.3.80.0040.00914.90
7.3.70.0080.00814.88
7.3.60.0080.00614.84
7.3.50.0050.00615.10
7.3.40.0090.00615.10
7.3.30.0080.00515.04
7.3.20.0080.00616.87
7.3.10.0070.00716.75
7.3.00.0040.00816.71
7.2.330.0120.00916.77
7.2.320.0130.01016.81
7.2.310.0060.01116.71
7.2.300.0070.01016.99
7.2.290.0110.00616.87
7.2.260.0030.01315.10
7.2.250.0080.01115.05
7.2.240.0050.01015.37
7.2.230.0060.01015.11
7.2.220.0100.00614.89
7.2.210.0030.01115.33
7.2.200.0050.01115.07
7.2.190.0080.00515.21
7.2.180.0070.00515.10
7.2.170.0060.01115.14
7.2.160.0060.00615.09
7.2.150.0070.01016.80
7.2.140.0030.01317.17
7.2.130.0040.00817.24
7.2.120.0110.00416.96
7.2.110.0040.00816.94
7.2.100.0060.00917.15
7.2.90.0040.01117.09
7.2.80.0070.00716.98
7.2.70.0030.01017.12
7.2.60.0090.00616.95
7.2.50.0030.00617.11
7.2.40.0030.01117.16
7.2.30.0040.00717.34
7.2.20.0080.00817.19
7.2.10.0060.00917.07
7.2.00.0100.01018.28
7.1.330.0000.01415.64
7.1.320.0060.00915.92
7.1.310.0090.00515.84
7.1.300.0070.00515.96
7.1.290.0070.00816.04
7.1.280.0050.00715.87
7.1.270.0040.00916.04
7.1.260.0070.00716.11
7.1.250.0080.00416.04
7.1.240.0060.00315.98
7.1.230.0040.00716.02
7.1.220.0030.01016.11
7.1.210.0070.00715.91
7.1.200.0100.00315.97
7.1.190.0040.00716.08
7.1.180.0060.01016.02
7.1.170.0040.00415.79
7.1.160.0040.00416.00
7.1.150.0070.00716.12
7.1.140.0040.00815.82
7.1.130.0100.00315.91
7.1.120.0040.00415.71
7.1.110.0040.00416.14
7.1.100.0050.01017.15
7.1.90.0070.00716.05
7.1.80.0070.00416.07
7.1.70.0040.00716.51
7.1.60.0080.01217.57
7.1.50.0080.00716.55
7.1.40.0000.01416.04
7.1.30.0000.01315.71
7.1.20.0120.00016.04
7.1.10.0040.00715.83
7.1.00.0000.04719.28
7.0.330.0070.00715.77
7.0.320.0080.00315.19
7.0.310.0080.00415.61
7.0.300.0000.01015.49
7.0.290.0030.00515.47
7.0.280.0040.00715.58
7.0.270.0060.00615.70
7.0.260.0030.00615.72
7.0.250.0030.00715.48
7.0.240.0090.00315.72
7.0.230.0070.00815.51
7.0.220.0030.01015.29
7.0.210.0030.01015.51
7.0.200.0040.00716.23
7.0.190.0090.00315.74
7.0.180.0040.01115.61
7.0.170.0060.00315.75
7.0.160.0060.00315.67
7.0.150.0030.00615.29
7.0.140.0040.03518.78
7.0.130.0070.00715.41
7.0.120.0000.01515.60
7.0.110.0030.00615.59
7.0.100.0000.01115.44
7.0.90.0040.01115.62
7.0.80.0060.00315.24
7.0.70.0080.00415.74
7.0.60.0100.04017.67
7.0.50.0030.02516.92
7.0.40.0090.02716.82
7.0.30.0150.03616.94
7.0.20.0220.04016.80
7.0.10.0060.04917.10
7.0.00.0080.04616.82
5.6.400.0000.01314.42
5.6.390.0060.00614.35
5.6.380.0080.00414.42
5.6.370.0040.00814.20
5.6.360.0030.01014.51
5.6.350.0090.00614.39
5.6.340.0070.00714.44
5.6.330.0070.00714.38
5.6.320.0040.00714.68
5.6.310.0000.01014.45
5.6.300.0060.01014.64
5.6.290.0080.00414.08
5.6.280.0070.03717.80
5.6.270.0110.00014.31
5.6.260.0040.01114.34
5.6.250.0000.01714.25
5.6.240.0070.00714.32
5.6.230.0060.00614.39
5.6.220.0050.00514.21
5.6.210.0110.03817.32
5.6.200.0080.02516.27
5.6.190.0090.02317.42
5.6.180.0190.04417.46
5.6.170.0100.05517.29
5.6.160.0080.03617.30
5.6.150.0060.04116.38
5.6.140.0090.03916.32
5.6.130.0060.04516.28
5.6.120.0080.04517.66
5.6.110.0040.03617.66
5.6.100.0080.04317.83
5.6.90.0070.03817.66
5.6.80.0030.02517.24
5.6.70.0040.01114.18
5.6.60.0060.00314.24
5.6.50.0060.00614.30
5.6.40.0000.00914.00
5.6.30.0110.00714.43
5.6.20.0130.00314.10
5.6.10.0070.00714.62
5.6.00.0030.01014.35
5.5.380.0070.00714.08
5.5.370.0080.00814.30
5.5.360.0100.00314.32
5.5.350.0170.04317.33
5.5.340.0110.02016.19
5.5.330.0120.04017.30
5.5.320.0050.04217.43
5.5.310.0170.04217.43
5.5.300.0080.04116.06
5.5.290.0050.04516.15
5.5.280.0050.02317.68
5.5.270.0020.05117.71
5.5.260.0060.04217.61
5.5.250.0130.04717.35
5.5.240.0100.03517.14
5.5.230.0040.00713.91
5.5.220.0070.01014.26
5.5.210.0090.00614.25
5.5.200.0030.00714.11
5.5.190.0070.00714.32
5.5.180.0120.00614.03
5.5.170.0070.00714.35
5.5.160.0100.00613.86
5.5.150.0100.00714.05
5.5.140.0070.00714.28
5.5.130.0090.00614.25
5.5.120.0030.00914.34
5.5.110.0100.00314.41
5.5.100.0070.01114.11
5.5.90.0060.00614.29
5.5.80.0030.01014.19
5.5.70.0060.01214.16
5.5.60.0040.01113.98
5.5.50.0040.01414.20
5.5.40.0000.01414.05
5.5.30.0040.01214.18
5.5.20.0140.00014.19
5.5.10.0040.00414.00
5.5.00.0040.01114.27
5.4.450.0100.03116.20
5.4.440.0460.02416.19
5.4.430.0100.02716.45
5.4.420.0570.02816.32
5.4.410.0430.03316.19
5.4.400.0480.03016.04
5.4.390.0570.02916.11
5.4.380.0620.02015.87
5.4.370.0500.03015.97
5.4.360.0580.03115.98
5.4.350.0530.03215.97
5.4.340.0530.02715.91
5.4.330.0030.00913.21
5.4.320.0020.02512.86
5.4.310.0080.02312.86
5.4.300.0070.02612.86
5.4.290.0110.04112.85
5.4.280.0090.02812.80
5.4.270.0060.02712.80
5.4.260.0070.03012.80
5.4.250.0070.02212.80
5.4.240.0030.02612.80
5.4.230.0080.02012.80
5.4.220.0060.02212.80
5.4.210.0060.02312.80
5.4.200.0080.02212.80
5.4.190.0050.02412.79
5.4.180.0040.02412.79
5.4.170.0050.02412.80
5.4.160.0090.02412.80
5.4.150.0070.03012.79
5.4.140.0050.02712.64
5.4.130.0070.02812.63
5.4.120.0030.02412.61
5.4.110.0050.02212.61
5.4.100.0090.03012.61
5.4.90.0050.02612.61
5.4.80.0040.03012.61
5.4.70.0060.02812.61
5.4.60.0120.03412.61
5.4.50.0040.02812.61
5.4.40.0060.02712.60
5.4.30.0090.03612.60
5.4.20.0100.02012.60
5.4.10.0080.02012.60
5.4.00.0070.02712.35
5.3.290.0060.02213.01
5.3.280.0080.03012.96
5.3.270.0080.03312.96
5.3.260.0070.02612.96
5.3.250.0050.03912.96
5.3.240.0180.04312.96
5.3.230.0070.03912.96
5.3.220.0060.02612.94
5.3.210.0020.02612.95
5.3.200.0050.02512.94
5.3.190.0060.02412.94
5.3.180.0070.02212.94
5.3.170.0100.03512.94
5.3.160.0080.03612.94
5.3.150.0080.02612.94
5.3.140.0070.02712.93
5.3.130.0070.02912.93
5.3.120.0090.02112.93
5.3.110.0060.02212.93
5.3.100.0060.03112.67
5.3.90.0070.03112.66
5.3.80.0050.02812.66
5.3.70.0060.02212.66
5.3.60.0060.02412.65
5.3.50.0080.03512.62
5.3.40.0080.03412.62
5.3.30.0080.03712.60
5.3.20.0020.03112.49
5.3.10.0050.02812.48
5.3.00.0080.03112.47
5.2.170.0060.0469.24
5.2.160.0040.0459.23
5.2.150.0060.0449.24
5.2.140.0140.0419.23
5.2.130.0110.0499.20
5.2.120.0050.0479.20
5.2.110.0100.0689.20
5.2.100.0090.0429.20
5.2.90.0040.0899.20
5.2.80.0120.0479.20
5.2.70.0110.0539.19
5.2.60.0180.0759.14
5.2.50.0120.0479.11
5.2.40.0080.0629.10
5.2.30.0170.0539.07
5.2.20.0120.0599.07
5.2.10.0060.0418.95
5.2.00.0130.0568.81
5.1.60.0070.0388.09
5.1.50.0070.0578.09
5.1.40.0100.0348.07
5.1.30.0100.0448.42
5.1.20.0100.0728.45
5.1.10.0080.0608.16
5.1.00.0120.0728.17
5.0.50.0120.0476.64
5.0.40.0080.0476.51
5.0.30.0100.0596.32
5.0.20.0120.0516.29
5.0.10.0120.0686.27
5.0.00.0080.0606.25
4.4.90.0090.0404.78
4.4.80.0090.0584.75
4.4.70.0140.0424.76
4.4.60.0040.0444.76
4.4.50.0070.0354.77
4.4.40.0070.0704.70
4.4.30.0260.0444.76
4.4.20.0130.0214.85
4.4.10.0040.0364.85
4.4.00.0050.0244.75
4.3.110.0040.0164.67
4.3.100.0020.0174.67
4.3.90.0020.0174.64
4.3.80.0040.0274.59
4.3.70.0060.0334.63
4.3.60.0030.0244.62
4.3.50.0030.0374.63
4.3.40.0050.0344.54
4.3.30.0050.0223.30
4.3.20.0050.0323.28
4.3.10.0050.0373.24
4.3.00.0030.01016.04

preferences:
59.6 ms | 400 KiB | 5 Q