3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!--HEAD--><p class="listing-grp-title">Top Ranked Offers</p><!--HEAD--> <!--WRAPPERSTART--><div><table><!--WRAPPERSTART--> <tr class="{% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}"> <td class="rank">&#35; {{forloop.counter}}</td> <td class="logo"> <img src="{{ad.display_url}}" width="120" height="40" alt="Aig Sml"/> </td> <td> <p class="offer">{{ad.headline}}</p> {{ad.body|safe}} </td> <td> <img src="images/arrow.png" width="14" height="18" alt=""/> </td> <td class="end"> <a href="#"><img class="button" src="images/sml-btn.png" width="112" height="30" alt=""/></a> </td> </tr> <!--WRAPPEREND--></table></div><!--WRAPPEREND-->'; $sub= 'sub_0_'; echo _format_special_tags($html,$sub); function _format_special_tags($html,$sub) { //where sub is sub_1_ or similar $tags = array(); $outer= "{% if forloop.counter = ".$sub."range.0 %}"; $end_outer = "{% endif %}"; $header = _return_between('<!--HEAD-->',$html); $wrapper_start = _return_between('<!--WRAPPERSTART-->',$html); $wrapper_end = _return_between('<!--WRAPPEREND-->',$html); $html = $outer.(($header)?$header:'').(($wrapper_start)?$wrapper_start:'').$end_outer.$html.$outer.(($wrapper_end)?$wrapper_end:'').$end_outer; } function _return_between($tag,$subject) { $split = explode($tag,$subject,3); return isset($split[1])?$split[1]:false; }

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.0120.00416.50
8.3.50.0100.00722.00
8.3.40.0120.00418.75
8.3.30.0000.01419.18
8.3.20.0070.00020.39
8.3.10.0080.00023.48
8.3.00.0000.00819.38
8.2.180.0040.01216.75
8.2.170.0070.00722.96
8.2.160.0100.00720.37
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00722.08
8.2.110.0070.00322.21
8.2.100.0110.00018.03
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0040.00420.02
8.2.30.0040.00718.20
8.2.20.0000.00817.93
8.2.10.0040.00418.10
8.2.00.0040.00917.76
8.1.280.0030.01025.92
8.1.270.0050.00323.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.98
8.1.230.0080.00319.27
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00617.35
8.1.180.0030.00718.10
8.1.170.0050.00520.30
8.1.160.0050.00222.09
8.1.150.0000.00818.69
8.1.140.0050.00217.59
8.1.130.0040.00417.93
8.1.120.0000.00717.53
8.1.110.0080.00017.55
8.1.100.0050.00317.48
8.1.90.0050.00317.50
8.1.80.0040.00417.43
8.1.70.0080.00017.48
8.1.60.0000.00817.54
8.1.50.0030.00517.58
8.1.40.0070.00017.63
8.1.30.0030.00517.68
8.1.20.0000.00817.61
8.1.10.0040.00417.56
8.1.00.0000.00717.61
8.0.300.0040.00420.79
8.0.290.0040.00417.30
8.0.280.0040.00418.55
8.0.270.0050.00217.32
8.0.260.0030.00317.32
8.0.250.0040.00416.96
8.0.240.0000.00716.98
8.0.230.0000.00716.97
8.0.220.0000.00716.92
8.0.210.0060.00316.94
8.0.200.0030.00317.07
8.0.190.0040.00416.90
8.0.180.0050.00216.99
8.0.170.0040.00416.86
8.0.160.0050.00216.96
8.0.150.0030.00416.89
8.0.140.0040.00416.94
8.0.130.0000.00613.42
8.0.120.0040.00416.89
8.0.110.0040.00416.96
8.0.100.0040.00417.00
8.0.90.0000.00716.85
8.0.80.0170.00316.94
8.0.70.0000.00716.95
8.0.60.0030.00517.05
8.0.50.0000.00716.78
8.0.30.0100.01017.19
8.0.20.0120.01117.40
8.0.10.0040.00417.04
8.0.00.0110.00716.77
7.4.330.0020.00215.15
7.4.320.0060.00016.67
7.4.300.0000.00616.70
7.4.290.0000.00716.52
7.4.280.0030.00616.48
7.4.270.0050.00316.59
7.4.260.0030.00316.58
7.4.250.0040.00416.52
7.4.240.0050.00216.52
7.4.230.0070.00016.68
7.4.220.0170.00716.70
7.4.210.0080.01016.62
7.4.200.0030.00316.48
7.4.190.0000.00716.73
7.4.160.0070.01016.62
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0120.00516.62
7.4.120.0090.00716.54
7.4.110.0140.00316.50
7.4.100.0120.00916.48
7.4.90.0070.01016.56
7.4.80.0100.01019.39
7.4.70.0040.01216.71
7.4.60.0130.00916.41
7.4.50.0040.00016.66
7.4.40.0090.00922.77
7.4.30.0070.01016.52
7.4.10.0030.01715.11
7.4.00.0060.01115.06
7.3.330.0000.00513.34
7.3.320.0030.00313.39
7.3.310.0030.00416.43
7.3.300.0030.00316.39
7.3.290.0060.00916.35
7.3.280.0120.00616.35
7.3.270.0060.01217.40
7.3.260.0070.01116.71
7.3.250.0120.00516.49
7.3.240.0110.00516.61
7.3.230.0100.00716.54
7.3.210.0070.01016.55
7.3.200.0130.01119.39
7.3.190.0160.00616.38
7.3.180.0090.00716.66
7.3.170.0100.00616.55
7.3.160.0030.01316.55
7.3.130.0050.01015.07
7.3.120.0080.01014.78
7.3.110.0070.01115.07
7.3.100.0030.01015.07
7.3.90.0030.01015.07
7.3.80.0060.00915.07
7.3.70.0060.00315.07
7.3.60.0100.00315.07
7.3.50.0070.00415.07
7.3.40.0000.01315.07
7.3.30.0000.01515.07
7.3.20.0130.00316.66
7.3.10.0090.00616.72
7.3.00.0000.01216.79
7.2.330.0160.00016.66
7.2.320.0060.01016.74
7.2.310.0080.01116.82
7.2.300.0070.01016.70
7.2.290.0100.00716.89
7.2.260.0060.01215.17
7.2.250.0040.01515.07
7.2.240.0040.01215.33
7.2.230.0090.00615.07
7.2.220.0040.00815.12
7.2.210.0060.01015.38
7.2.200.0060.00615.23
7.2.190.0000.01415.07
7.2.180.0080.00815.07
7.2.170.0070.00715.10
7.2.160.0070.00715.07
7.2.150.0030.01316.68
7.2.140.0130.00017.06
7.2.130.0100.00316.86
7.2.120.0070.00717.17
7.2.110.0070.00316.63
7.2.100.0000.01517.10
7.2.90.0060.00616.96
7.2.80.0030.01017.05
7.2.70.0140.00016.91
7.2.60.0040.01116.97
7.2.50.0070.00416.99
7.2.40.0090.00616.68
7.2.30.0040.00716.68
7.2.20.0080.00317.20
7.2.10.0000.01417.00
7.2.00.0050.01018.23
7.1.330.0000.01315.75
7.1.320.0070.00715.85
7.1.310.0000.01415.78
7.1.300.0070.00715.82
7.1.290.0040.01115.88
7.1.280.0000.01115.89
7.1.270.0000.01315.71
7.1.260.0090.00015.88
7.1.250.0040.00815.75
7.1.240.0000.01515.79
7.1.230.0090.00615.82
7.1.220.0100.00315.89
7.1.210.0040.01115.79
7.1.200.0030.00915.75
7.1.190.0060.00615.49
7.1.180.0070.00715.82
7.1.170.0030.01015.89
7.1.160.0090.00615.74
7.1.150.0040.00416.01
7.1.140.0000.01215.93
7.1.130.0090.00615.83
7.1.120.0030.00615.70
7.1.110.0030.01015.89
7.1.100.0040.00916.88
7.1.90.0000.01315.73
7.1.80.0110.00315.91
7.1.70.0030.00716.46
7.1.60.0070.01217.62
7.1.50.0070.00816.56
7.1.40.0060.00615.84
7.1.30.0030.00515.94
7.1.20.0070.00415.76
7.1.10.0030.01015.81
7.1.00.0080.03919.13
7.0.330.0070.00715.30
7.0.320.0000.00915.28
7.0.310.0030.00915.43
7.0.300.0030.01315.21
7.0.290.0140.00715.29
7.0.280.0120.00015.14
7.0.270.0040.00415.16
7.0.260.0060.01015.42
7.0.250.0060.00615.60
7.0.240.0060.00815.57
7.0.230.0060.00615.30
7.0.220.0000.01315.39
7.0.210.0060.00315.34
7.0.200.0040.00616.13
7.0.190.0000.00915.23
7.0.180.0090.00315.51
7.0.170.0030.01215.62
7.0.160.0070.00715.28
7.0.150.0040.00815.45
7.0.140.0020.04218.64
7.0.130.0080.00015.62
7.0.120.0090.00315.29
7.0.110.0070.02217.80
7.0.100.0060.02317.71
7.0.90.0070.02417.80
7.0.80.0050.02417.78
7.0.70.0080.02317.69
7.0.60.0070.02517.80
7.0.50.0080.02317.67
7.0.40.0050.02517.45
7.0.30.0060.02017.41
7.0.20.0020.02717.42
7.0.10.0000.02917.42
7.0.00.0030.02717.46
5.6.400.0030.00815.07
5.6.390.0060.00615.07
5.6.380.0000.01315.07
5.6.370.0110.00315.07
5.6.360.0030.00915.07
5.6.350.0060.01515.07
5.6.340.0070.00715.07
5.6.330.0060.00315.07
5.6.320.0030.01015.07
5.6.310.0000.01115.07
5.6.300.0060.00915.07
5.6.290.0090.00315.07
5.6.280.0030.04017.93
5.6.270.0060.00615.07
5.6.260.0080.01717.89
5.6.250.0110.01817.83
5.6.240.0030.02417.84
5.6.230.0020.03717.85
5.6.220.0050.02317.84
5.6.210.0060.02217.84
5.6.200.0090.02217.84
5.6.190.0070.03117.85
5.6.180.0020.02517.88
5.6.170.0080.01817.84
5.6.160.0020.02717.89
5.6.150.0100.02017.89
5.6.140.0050.02317.86
5.6.130.0050.02217.86
5.6.120.0000.03017.89
5.6.110.0080.02317.82
5.6.100.0020.02417.95
5.6.90.0050.02317.95
5.6.80.0070.02317.55
5.6.70.0020.02117.56
5.6.60.0000.03517.50
5.6.50.0080.03817.54
5.6.40.0010.02817.56
5.6.30.0070.03317.50
5.6.20.0100.02017.53
5.6.10.0110.03817.52
5.6.00.0050.04017.52
5.5.380.0040.02216.38
5.5.370.0000.02616.29
5.5.360.0060.02916.31
5.5.350.0030.02416.34
5.5.340.0070.02216.56
5.5.330.0050.02516.49
5.5.320.0050.02516.59
5.5.310.0020.02416.58
5.5.300.0000.03016.50
5.5.290.0030.02316.49
5.5.280.0030.02516.57
5.5.270.0000.03016.58
5.5.260.0060.02716.49
5.5.250.0050.01916.48
5.5.240.0040.02716.19
5.5.230.0020.03716.27
5.5.220.0050.04116.30
5.5.210.0050.04216.34
5.5.200.0030.02016.18
5.5.190.0050.02916.19
5.5.180.0030.02516.19
5.5.170.0030.01015.07
5.5.160.0070.04316.19
5.5.150.0030.04116.27
5.5.140.0050.04316.28
5.5.130.0100.03816.16
5.5.120.0080.02916.19
5.5.110.0050.03116.18
5.5.100.0050.04316.28
5.5.90.0060.03916.21
5.5.80.0070.02916.27
5.5.70.0070.02216.18
5.5.60.0100.03716.27
5.5.50.0130.03216.26
5.5.40.0110.03516.13
5.5.30.0070.04316.12
5.5.20.0070.03816.07
5.5.10.0090.03516.13
5.5.00.0000.03816.20
5.4.450.0070.02017.29
5.4.440.0060.02317.24
5.4.430.0070.02217.19
5.4.420.0070.02017.17
5.4.410.0030.02317.13
5.4.400.0020.02417.05
5.4.390.0080.02017.14
5.4.380.0030.02717.02
5.4.370.0050.03917.03
5.4.360.0020.02317.04
5.4.350.0080.01817.04
5.4.340.0030.03517.04
5.4.330.0000.00715.07
5.4.320.0050.02917.12
5.4.310.0000.02517.15
5.4.300.0040.03917.11
5.4.290.0090.02717.08
5.4.280.0070.04017.04
5.4.270.0050.03817.08
5.4.260.0080.03317.16
5.4.250.0070.03717.03
5.4.240.0060.02317.13
5.4.230.0070.03717.18
5.4.220.0120.03317.04
5.4.210.0080.03217.18
5.4.200.0020.03017.03
5.4.190.0110.01917.05
5.4.180.0070.03517.07
5.4.170.0070.04017.19
5.4.160.0050.02817.09
5.4.150.0070.03817.00
5.4.140.0030.04315.75
5.4.130.0150.03015.83
5.4.120.0070.02315.73
5.4.110.0060.04115.89
5.4.100.0070.03315.76
5.4.90.0030.02315.84
5.4.80.0020.03215.71
5.4.70.0070.03515.80
5.4.60.0070.02215.86
5.4.50.0120.03215.73
5.4.40.0060.03315.79
5.4.30.0090.03515.80
5.4.20.0040.04015.84
5.4.10.0030.02715.84
5.4.00.0070.03515.53
5.3.290.0050.01814.88
5.3.280.0080.01814.83
5.3.270.0030.04314.82
5.3.260.0040.02914.85
5.3.250.0050.02114.85
5.3.240.0070.03314.84
5.3.230.0080.04214.85
5.3.220.0030.02514.89
5.3.210.0080.02314.83
5.3.200.0030.03514.82
5.3.190.0070.02014.82
5.3.180.0040.04514.84
5.3.170.0080.03514.80
5.3.160.0100.03814.86
5.3.150.0080.03514.83
5.3.140.0020.03814.86
5.3.130.0050.02314.81
5.3.120.0100.03714.82
5.3.110.0070.03914.93
5.3.100.0020.04514.67
5.3.90.0100.03314.62
5.3.80.0100.03314.61
5.3.70.0100.03514.59
5.3.60.0100.02114.59
5.3.50.0080.03314.51
5.3.40.0080.03914.52
5.3.30.0020.02514.56
5.3.20.0020.04114.38
5.3.10.0050.02014.43
5.3.00.0020.04014.35
5.2.170.0070.06011.95
5.2.160.0000.06711.95
5.2.150.0030.06311.95
5.2.140.0030.06011.95
5.2.130.0030.05011.95
5.2.120.0000.04011.95
5.2.110.0070.05711.95
5.2.100.0170.04011.95
5.2.90.0000.05011.95
5.2.80.0070.05311.95
5.2.70.0000.03711.95
5.2.60.0070.06011.95
5.2.50.0130.05711.95
5.2.40.0070.06311.95
5.2.30.0000.05311.95
5.2.20.0070.06011.95
5.2.10.0070.06311.95
5.2.00.0070.05711.95
5.1.60.0070.05011.95
5.1.50.0000.05711.95
5.1.40.0100.04711.95
5.1.30.0070.04711.95
5.1.20.0070.04311.95
5.1.10.0030.04711.95
5.1.00.0030.04711.95
5.0.50.0030.02311.95
5.0.40.0030.04011.95
5.0.30.0000.03311.95
5.0.20.0030.02711.95
5.0.10.0000.02711.95
5.0.00.0000.03311.95
4.4.90.0000.03311.95
4.4.80.0000.03711.95
4.4.70.0100.03011.95
4.4.60.0000.03711.95
4.4.50.0000.03711.95
4.4.40.0030.02311.95
4.4.30.0030.03711.95
4.4.20.0000.03711.95
4.4.10.0030.02711.95
4.4.00.0030.02311.95
4.3.110.0030.01711.95
4.3.100.0000.01711.95
4.3.90.0000.01711.95
4.3.80.0000.02711.95
4.3.70.0000.03011.95
4.3.60.0030.02011.95
4.3.50.0000.02011.95
4.3.40.0030.03011.95
4.3.30.0000.01711.95
4.3.20.0000.01711.95
4.3.10.0000.01311.95
4.3.00.0000.01711.95

preferences:
84.48 ms | 401 KiB | 5 Q