3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = $this->_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.0220.00316.75
8.3.50.0120.00622.07
8.3.40.0090.00618.86
8.3.30.0100.00719.13
8.3.20.0040.00420.29
8.3.10.0050.00323.66
8.3.00.0030.00717.63
8.2.180.0120.00616.75
8.2.170.0080.00822.96
8.2.160.0130.00720.47
8.2.150.0040.00424.18
8.2.140.0110.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.14
8.2.110.0070.00322.09
8.2.100.0080.00417.78
8.2.90.0040.00419.05
8.2.80.0090.00017.97
8.2.70.0080.00317.49
8.2.60.0000.00817.90
8.2.50.0040.00418.07
8.2.40.0040.00419.75
8.2.30.0080.00017.99
8.2.20.0000.00817.70
8.2.10.0000.00717.94
8.2.00.0000.00717.71
8.1.280.0110.00425.92
8.1.270.0080.00023.79
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.89
8.1.230.0070.00419.21
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0050.00517.25
8.1.190.0080.00017.22
8.1.180.0060.00318.10
8.1.170.0060.00318.52
8.1.160.0050.00322.02
8.1.150.0000.00818.60
8.1.140.0000.00717.28
8.1.130.0000.00717.75
8.1.120.0040.00417.32
8.1.110.0040.00417.29
8.1.100.0000.00717.30
8.1.90.0000.00817.43
8.1.80.0000.00817.29
8.1.70.0000.00717.35
8.1.60.0080.00317.54
8.1.50.0040.00417.57
8.1.40.0000.00717.42
8.1.30.0060.00317.43
8.1.20.0030.00517.56
8.1.10.0000.00817.50
8.1.00.0050.00317.41
8.0.300.0000.00720.73
8.0.290.0020.00517.18
8.0.280.0000.00718.44
8.0.270.0000.00717.10
8.0.260.0030.00317.08
8.0.250.0000.00716.84
8.0.240.0040.00416.86
8.0.230.0000.00716.84
8.0.220.0040.00416.80
8.0.210.0030.00316.91
8.0.200.0070.00016.96
8.0.190.0080.00017.02
8.0.180.0060.00316.94
8.0.170.0030.00516.93
8.0.160.0040.00416.95
8.0.150.0000.00716.75
8.0.140.0050.00316.75
8.0.130.0030.00313.41
8.0.120.0080.00016.88
8.0.110.0040.00416.90
8.0.100.0040.00416.93
8.0.90.0040.00416.89
8.0.80.0040.01716.84
8.0.70.0000.00716.87
8.0.60.0040.00416.97
8.0.50.0040.00416.89
8.0.30.0070.01117.02
8.0.20.0080.01117.40
8.0.10.0070.00017.05
8.0.00.0080.01116.62
7.4.330.0000.00515.00
7.4.320.0060.00016.50
7.4.300.0060.00016.65
7.4.290.0050.00316.61
7.4.280.0030.00316.47
7.4.270.0070.00016.54
7.4.260.0050.00316.52
7.4.250.0050.00216.46
7.4.240.0030.00516.47
7.4.230.0070.00016.64
7.4.220.0070.01016.62
7.4.210.0050.01216.57
7.4.200.0040.00416.42
7.4.190.0000.00716.77
7.4.160.0170.00016.45
7.4.150.0070.01117.40
7.4.140.0110.00817.86
7.4.130.0130.00716.46
7.4.120.0050.01216.46
7.4.110.0120.00816.55
7.4.100.0030.01616.54
7.4.90.0160.00616.42
7.4.80.0090.00919.39
7.4.70.0060.01016.29
7.4.60.0090.00916.50
7.4.50.0090.00016.48
7.4.40.0040.01216.70
7.4.30.0150.00616.45
7.4.00.0030.01314.91
7.3.330.0060.00013.08
7.3.320.0000.00513.11
7.3.310.0030.00316.21
7.3.300.0070.00016.31
7.3.290.0030.01016.26
7.3.280.0040.01316.29
7.3.270.0170.00017.40
7.3.260.0100.00716.27
7.3.250.0050.01216.41
7.3.240.0070.01016.50
7.3.230.0080.00816.39
7.3.210.0060.01516.52
7.3.200.0130.00719.39
7.3.190.0170.00616.20
7.3.180.0160.00016.27
7.3.170.0000.01616.45
7.3.160.0040.01416.31
7.3.120.0090.00314.68
7.3.110.0110.00714.71
7.3.100.0100.00714.99
7.3.90.0100.00714.56
7.3.80.0030.01014.57
7.3.70.0000.01014.57
7.3.60.0000.01614.72
7.3.50.0060.00614.74
7.3.40.0070.00714.87
7.3.30.0070.00314.51
7.3.20.0040.00416.42
7.3.10.0040.01116.33
7.3.00.0030.01016.39
7.2.330.0130.01016.54
7.2.320.0150.00616.32
7.2.310.0150.00816.52
7.2.300.0140.00316.22
7.2.290.0070.01016.52
7.2.250.0060.01214.81
7.2.240.0060.01214.96
7.2.230.0060.00614.76
7.2.220.0030.01015.02
7.2.210.0090.00614.45
7.2.200.0080.00414.63
7.2.190.0070.00414.60
7.2.180.0130.00314.95
7.2.170.0040.00814.84
7.2.60.0000.01416.86
7.2.00.0070.01019.33
7.1.330.0030.01115.58
7.1.320.0110.00415.35
7.1.310.0040.01115.78
7.1.300.0090.00615.76
7.1.290.0060.00915.64
7.1.280.0040.00415.66
7.1.270.0040.01115.63
7.1.260.0030.01015.69
7.1.200.0080.00415.60
7.1.100.0040.00817.82
7.1.70.0050.00517.07
7.1.60.0070.01719.46
7.1.50.0100.01316.87
7.1.00.0100.07022.44
7.0.200.0000.00716.81
7.0.140.0000.07722.09
7.0.110.0630.08020.06
7.0.100.0630.08019.94
7.0.90.0630.09019.90
7.0.80.0670.07719.94
7.0.70.0670.08319.92
7.0.60.0600.06020.01
7.0.50.0530.06320.41
7.0.40.0100.08020.28
7.0.30.0100.07320.25
7.0.20.0100.06720.19
7.0.10.0100.08320.02
7.0.00.0170.08020.13
5.6.260.0170.06720.59
5.6.250.0100.07320.72
5.6.240.0070.05020.67
5.6.230.0100.08320.55
5.6.220.0100.07320.64
5.6.210.0130.04320.64
5.6.200.0130.07720.96
5.6.190.0070.05321.11
5.6.180.0100.08021.28
5.6.170.0030.08721.05
5.6.160.0130.06020.93
5.6.150.0030.05720.98
5.6.140.0130.08020.93
5.6.130.0100.05320.98
5.6.120.0130.08021.26
5.6.110.0030.07721.20
5.6.100.0070.06020.99
5.6.90.0030.06021.12
5.6.80.0070.05320.47
5.6.70.0070.07020.51
5.6.60.0070.03320.31
5.6.50.0100.03320.57
5.6.40.0030.08020.62
5.6.30.0100.07720.39
5.6.20.0100.07020.48
5.6.10.0030.07720.44
5.6.00.0070.08320.63
5.5.380.0200.06720.57
5.5.370.0070.08020.35
5.5.360.0170.07320.31
5.5.350.0030.08020.43
5.5.340.0170.07720.79
5.5.330.0130.07720.99
5.5.320.0100.04720.81
5.5.310.0170.06320.90
5.5.300.0000.09320.80
5.5.290.0070.05720.89
5.5.280.0070.08020.89
5.5.270.0030.05721.01
5.5.260.0130.07320.94
5.5.250.0030.04720.68
5.5.240.0030.08020.40
5.5.230.0000.08020.28
5.5.220.0030.07020.07
5.5.210.0070.06720.42
5.5.200.0130.07020.32
5.5.190.0100.07020.25
5.5.180.0100.08020.32
5.5.160.0100.07720.09
5.5.150.0070.03720.16
5.5.140.0030.04020.08
5.5.130.0000.04020.09
5.5.120.0030.03720.36
5.5.110.0000.03720.04
5.5.100.0100.03320.26
5.5.90.0070.03720.27
5.5.80.0070.03320.22
5.5.70.0030.04020.02
5.5.60.0030.03719.96
5.5.50.0070.06020.06
5.5.40.0070.07019.96
5.5.30.0100.05320.08
5.5.20.0030.04020.17
5.5.10.0170.07020.14
5.5.00.0070.03720.10
5.4.450.0100.08019.35
5.4.440.0100.09019.33
5.4.430.0100.07719.57
5.4.420.0100.06319.50
5.4.410.0070.07019.32
5.4.400.0170.03319.13
5.4.390.0070.07019.26
5.4.380.0100.07019.16
5.4.370.0030.08318.93
5.4.360.0100.07019.04
5.4.350.0100.07019.03
5.4.340.0100.06719.21
5.4.320.0070.05018.95
5.4.310.0000.04018.95
5.4.300.0030.03719.11
5.4.290.0000.04019.07
5.4.280.0030.03719.07
5.4.270.0030.04019.07
5.4.260.0030.03719.00
5.4.250.0030.03719.16
5.4.240.0030.03719.11
5.4.230.0030.03719.17
5.4.220.0070.05019.00
5.4.210.0030.07318.95
5.4.200.0030.03719.07
5.4.190.0000.04019.13
5.4.180.0070.05718.93
5.4.170.0000.04018.98
5.4.160.0030.04719.00
5.4.150.0070.03718.93
5.4.140.0070.03316.27
5.4.130.0030.03316.52
5.4.120.0000.03716.16
5.4.110.0030.03716.29
5.4.100.0070.03316.54
5.4.90.0100.02716.48
5.4.80.0100.02716.22
5.4.70.0030.03716.35
5.4.60.0070.03316.35
5.4.50.0000.03716.20
5.4.40.0070.03316.55
5.4.30.0030.03316.48
5.4.20.0070.03016.37
5.4.10.0030.03716.37
5.4.00.0030.05715.61
5.3.290.0070.04714.46
5.3.280.0070.03314.54
5.3.270.0070.07014.67
5.3.260.0030.03714.70
5.3.250.0070.03314.68
5.3.240.0070.03714.48
5.3.230.0030.03714.42
5.3.220.0000.04314.50
5.3.210.0070.03314.35
5.3.200.0030.04314.44
5.3.190.0100.03014.39
5.3.180.0070.03014.44
5.3.170.0130.02714.62
5.3.160.0070.03714.42
5.3.150.0070.05314.62
5.3.140.0000.04014.40
5.3.130.0070.03714.33
5.3.120.0030.04014.44
5.3.110.0030.05714.47
5.3.100.0130.03014.05
5.3.90.0070.03313.95
5.3.80.0130.02313.91
5.3.70.0130.06713.88
5.3.60.0030.04313.93
5.3.50.0070.03313.91
5.3.40.0030.03713.88
5.3.30.0070.04013.92
5.3.20.0100.02713.54
5.3.10.0000.04713.54
5.3.00.0030.04013.57
5.2.170.0030.03712.06
5.2.160.0000.03012.06
5.2.150.0000.03012.06
5.2.140.0070.03012.06
5.2.130.0030.02712.06
5.2.120.0100.02712.06
5.2.110.0030.04012.06
5.2.100.0100.02012.06
5.2.90.0070.02312.06
5.2.80.0000.03012.06
5.2.70.0000.04312.06
5.2.60.0000.03712.06
5.2.50.0070.04312.06
5.2.40.0030.06012.06
5.2.30.0070.05012.06
5.2.20.0100.05012.06
5.2.10.0030.06012.06
5.2.00.0030.05712.06
5.1.60.0030.05012.06
5.1.50.0030.06012.06
5.1.40.0130.04312.06
5.1.30.0030.05712.06
5.1.20.0100.05012.06
5.1.10.0030.05312.06
5.1.00.0030.04712.06
5.0.50.0070.04012.06
5.0.40.0070.04012.06
5.0.30.0000.06012.06
5.0.20.0000.02012.06
5.0.10.0030.01712.06
5.0.00.0000.04312.06
4.4.90.0000.02012.06
4.4.80.0000.03712.06
4.4.70.0030.03312.06
4.4.60.0000.01712.06
4.4.50.0030.03012.06
4.4.40.0030.03312.06
4.4.30.0030.03312.06
4.4.20.0000.02312.06
4.4.10.0030.03312.06
4.4.00.0070.05012.06
4.3.110.0030.03312.06
4.3.100.0070.02312.06
4.3.90.0000.01712.06
4.3.80.0070.04012.06
4.3.70.0000.03012.06
4.3.60.0000.03012.06
4.3.50.0000.02312.06
4.3.40.0000.05312.06
4.3.30.0000.02712.06
4.3.20.0000.01712.06
4.3.10.0000.02312.06
4.3.00.0030.02312.06

preferences:
67.38 ms | 400 KiB | 5 Q