3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_htmlId = 'kiala_pns'; ?> <?php $_htmlClass = 'kiala_pns'; ?> <?php $_htmlName = 'api_uri_parameters'; ?> <?php $_readonly = '0'; //$this->getElement()->getReadonly() ?> <table cellspacing="0" class="data border" id="packandship_table"> <col width="120" /> <col width="95" /> <col width="1" /> <thead> <tr class="headings"> <th><?php echo Mage::helper('locateandselect')->__('Parameter') ?></th> <th><?php echo Mage::helper('locateandselect')->__('Value') ?></th> <th class="last"><?php echo Mage::helper('locateandselect')->__('Action') ?></th> </tr> </thead> <tbody id="<?php echo $_htmlId ?>_container"></tbody> <tfoot> <tr> <td colspan="4" class="a-right"><?php echo $this->getAddButtonHtml() ?></td> </tr> </tfoot> </table> <script type="text/javascript"> //<![CDATA[ var pnsRowTemplate = '<tr>' + '<td><input class="<?php echo $_htmlClass ?> required-entry" name="groups[kiala][fields][<?php echo $_htmlName ?>][value][{{index}}][param]" id="<?php echo $_htmlId ?>_{{index}}_param"></td>' + '<td class="nobr"><input class="<?php echo $_htmlClass ?> required-entry" type="text" name="groups[kiala][fields][<?php echo $_htmlName ?>][value][{{index}}][val]" id="<?php echo $_htmlId ?>_{{index}}_val" /></td>' + '<td class="last"><input type="hidden" name="groups[kiala][fields][<?php echo $_htmlName ?>][value][{{index}}][delete]" class="delete" value="" id="<?php echo $_htmlId ?>_{{index}}_delete" />' + '<button title="<?php echo Mage::helper("locateandselect")->__("Delete Parameter") ?>" type="button" class="scalable delete icon-btn delete-product-option" id="<?php echo $_htmlId ?>_{{index}}_delete_button" onclick="return lnsControl.deleteItem(event);">' + '<span><?php echo Mage::helper("locateandselect")->__("Delete") ?></span></button></td>' + '</tr>'; var pnsControl = { template: new Template(pnsRowTemplate, new RegExp('(^|.|\\r|\\n)({{\\s*(\\w+)\\s*}})', "")), itemsCount: 0, addItem : function () { <?php if ($_readonly): ?> if (arguments.length < 2) { return; } <?php endif; ?> var data = { param: '', val: '', readOnly: false, index: this.itemsCount++ }; if(arguments.length >= 2) { data.param = arguments[0]; data.val = arguments[1]; } if (arguments.length == 3) { data.readOnly = arguments[2]; } Element.insert($('<?php echo $_htmlId ?>_container'), { bottom : this.template.evaluate(data) }); $('<?php echo $_htmlId ?>_' + data.index + '_param').value = data.param; $('<?php echo $_htmlId ?>_' + data.index + '_val').value = data.val; if (data.readOnly == '1') { ['param', 'val', 'delete'].each(function(idx){ $('<?php echo $_htmlId ?>_'+data.index+'_'+idx).disabled = true; }); $('<?php echo $_htmlId ?>_'+data.index+'_delete_button').hide(); } <?php if ($_readonly): ?> $('<?php echo $_htmlId ?>_container').select('input', 'select').each(this.disableElement); $('<?php echo $_htmlId ?>_container').up('table').select('button').each(this.disableElement); <?php else: ?> $('<?php echo $_htmlId ?>_container').select('input', 'select').each(function(el){ Event.observe(el, 'change', el.setHasChanges.bind(el)); }); <?php endif; ?> }, disableElement: function(el) { el.disabled = true; el.addClassName('disabled'); }, deleteItem: function(event) { var tr = Event.findElement(event, 'tr'); if (tr) { Element.select(tr, '.delete').each(function(elem){elem.value='1'}); Element.select(tr, ['input', 'select']).each(function(elem){elem.hide()}); Element.hide(tr); Element.addClassName(tr, 'no-display template'); } return false; } }; <?php if (is_array($this->getValues())): ?> <?php foreach ($this->getValues() as $_item): ?> pnsControl.addItem('<?php echo $_item['param'] ?>', '<?php echo $_item['val'] ?>'); <?php endforeach; ?> <?php endif; ?> <?php if ($_readonly): ?> $('<?php echo $_htmlId ?>_container').up('table').select('button') .each(pnsControl.disableElement); <?php endif; ?> $('packandship_table').up().addClassName('grid'); //]]> </script>

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.0150.00716.75
8.3.50.0100.01016.59
8.3.40.0070.01418.82
8.3.30.0150.00418.89
8.3.20.0000.00820.33
8.3.10.0040.00423.66
8.3.00.0000.00823.54
8.2.180.0100.01018.66
8.2.170.0060.00922.96
8.2.160.0120.00320.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0000.00826.35
8.2.110.0070.00322.08
8.2.100.0110.00017.91
8.2.90.0020.00520.55
8.2.80.0030.00617.97
8.2.70.0030.00617.93
8.2.60.0080.00017.80
8.2.50.0040.00418.10
8.2.40.0020.00520.26
8.2.30.0030.00320.68
8.2.20.0000.00717.62
8.2.10.0000.00717.99
8.2.00.0040.00418.12
8.1.280.0070.01525.92
8.1.270.0060.00323.88
8.1.260.0070.00728.09
8.1.250.0040.00428.09
8.1.240.0090.00620.77
8.1.230.0080.00321.03
8.1.220.0000.00817.74
8.1.210.0060.00318.82
8.1.200.0050.00717.23
8.1.190.0050.00317.25
8.1.180.0030.00618.10
8.1.170.0060.00318.59
8.1.160.0030.00320.77
8.1.150.0000.00718.88
8.1.140.0030.00719.50
8.1.130.0000.00717.57
8.1.120.0030.00317.38
8.1.110.0050.00217.43
8.1.100.0000.00717.34
8.1.90.0000.00717.46
8.1.80.0050.00217.38
8.1.70.0000.00717.37
8.1.60.0040.00417.59
8.1.50.0050.00317.61
8.1.40.0000.00817.54
8.1.30.0000.00917.56
8.1.20.0050.00317.65
8.1.10.0080.00017.49
8.1.00.0060.00317.52
8.0.300.0040.00420.20
8.0.290.0030.00616.88
8.0.280.0070.00018.54
8.0.270.0070.00017.31
8.0.260.0030.00317.23
8.0.250.0030.00316.89
8.0.240.0000.00716.95
8.0.230.0000.00717.05
8.0.220.0030.00516.86
8.0.210.0000.00716.99
8.0.200.0050.00217.04
8.0.190.0000.00816.91
8.0.180.0030.00716.89
8.0.170.0080.00316.92
8.0.160.0000.00716.95
8.0.150.0060.00316.87
8.0.140.0000.00816.93
8.0.130.0030.00313.42
8.0.120.0000.00816.82
8.0.110.0000.00716.85
8.0.100.0050.00316.89
8.0.90.0040.00416.82
8.0.80.0140.00316.90
8.0.70.0030.00516.90
8.0.60.0040.00416.95
8.0.50.0090.00016.84
8.0.30.0080.00717.28
8.0.20.0110.00917.40
8.0.10.0000.00716.95
8.0.00.0050.01216.78
7.4.330.0020.00216.74
7.4.320.0000.00616.64
7.4.300.0060.00016.46
7.4.290.0000.00616.56
7.4.280.0000.00816.62
7.4.270.0030.00316.59
7.4.260.0000.00816.55
7.4.250.0040.00416.47
7.4.240.0030.00516.56
7.4.230.0080.00016.30
7.4.220.0160.00016.59
7.4.210.0070.00716.63
7.4.200.0070.00016.76
7.4.160.0130.00316.73
7.4.150.0070.01117.40
7.4.140.0100.01517.86
7.4.130.0090.01016.59
7.4.120.0100.00916.72
7.4.110.0090.00916.60
7.4.100.0090.01216.44
7.4.90.0040.01416.70
7.4.80.0100.00919.39
7.4.70.0150.00716.46
7.4.60.0080.00816.66
7.4.50.0040.01116.72
7.4.40.0060.01016.54
7.4.30.0090.00916.38
7.4.10.0150.00314.89
7.4.00.0070.01014.98
7.3.330.0060.00013.16
7.3.320.0050.00013.16
7.3.310.0000.00716.38
7.3.300.0060.00016.27
7.3.290.0060.01016.29
7.3.280.0090.00616.29
7.3.270.0030.01717.40
7.3.260.0100.01416.68
7.3.250.0070.01116.47
7.3.240.0090.00816.54
7.3.230.0120.00616.45
7.3.210.0130.00916.42
7.3.200.0070.01016.25
7.3.190.0070.01016.43
7.3.180.0160.00016.25
7.3.170.0030.01416.48
7.3.160.0160.00716.62
7.3.130.0070.01114.62
7.3.120.0090.00714.87
7.3.110.0080.01014.80
7.3.100.0050.01214.90
7.3.90.0080.00514.79
7.3.80.0020.01214.96
7.3.70.0020.01014.86
7.3.60.0110.00614.90
7.3.50.0070.00714.88
7.3.40.0080.00514.74
7.3.30.0050.00914.68
7.3.20.0070.00716.69
7.3.10.0040.01116.48
7.3.00.0050.00716.47
7.2.330.0100.01016.50
7.2.320.0130.00316.63
7.2.310.0040.01416.31
7.2.300.0160.00616.59
7.2.290.0100.01316.36
7.2.260.0130.00615.13
7.2.250.0070.00915.09
7.2.240.0030.01314.84
7.2.230.0070.00914.88
7.2.220.0080.00514.96
7.2.210.0030.01114.97
7.2.200.0070.00615.06
7.2.190.0050.01114.91
7.2.180.0060.00814.98
7.2.170.0080.00514.86
7.2.160.0030.01114.83
7.2.150.0070.00716.89
7.2.140.0040.00816.82
7.2.130.0040.00916.63
7.2.120.0050.00716.60
7.2.110.0040.01016.45
7.2.100.0050.00716.65
7.2.90.0050.00916.73
7.2.80.0090.00616.58
7.2.70.0070.00816.59
7.2.60.0050.00816.70
7.2.50.0070.00716.65
7.2.40.0080.00516.75
7.2.30.0050.00616.79
7.2.20.0070.00516.68
7.2.10.0040.00716.58
7.2.00.0030.01117.38
7.1.330.0030.01315.40
7.1.320.0050.01015.53
7.1.310.0040.00815.57
7.1.300.0060.00915.45
7.1.290.0070.00515.57
7.1.280.0020.01215.61
7.1.270.0040.00715.67
7.1.260.0050.00715.49
7.1.250.0060.00415.57
7.1.240.0040.00815.63
7.1.230.0040.00715.75
7.1.220.0060.00615.68
7.1.210.0020.01015.68
7.1.200.0020.00915.63
7.1.190.0030.01415.44
7.1.180.0070.00615.57
7.1.170.0010.01215.46
7.1.160.0060.00615.61
7.1.150.0060.00615.61
7.1.140.0030.00715.56
7.1.130.0080.00615.71
7.1.120.0020.01015.45
7.1.110.0110.00015.52
7.1.100.0060.00716.41
7.1.90.0080.00515.57
7.1.80.0100.00415.57
7.1.70.0080.00516.17
7.1.60.0090.00616.90
7.1.50.0070.00816.07
7.1.40.0050.00815.66
7.1.30.0010.01015.63
7.1.20.0030.00915.63
7.1.10.0020.01515.58
7.1.00.0040.03017.72
7.0.330.0030.00815.33
7.0.320.0080.00315.36
7.0.310.0030.00815.14
7.0.300.0080.00615.15
7.0.290.0040.00815.38
7.0.280.0070.00315.25
7.0.270.0020.00915.33
7.0.260.0050.00815.36
7.0.250.0050.00915.44
7.0.240.0050.00915.40
7.0.230.0070.00515.34
7.0.220.0000.01015.38
7.0.210.0090.00315.18
7.0.200.0020.00715.63
7.0.190.0030.00815.48
7.0.180.0060.00815.22
7.0.170.0090.00615.36
7.0.160.0060.00915.31
7.0.150.0060.00615.38
7.0.140.0050.01015.21
7.0.130.0090.00315.07
7.0.120.0000.01215.27
7.0.110.0060.00715.45
7.0.100.0000.01215.36
7.0.90.0070.00715.39
7.0.80.0080.00415.38
7.0.70.0060.00415.44
7.0.60.0070.02116.81
7.0.50.0050.01716.17
7.0.40.0080.01815.70
7.0.30.0110.02315.45
7.0.20.0120.03115.60
7.0.10.0040.03015.68
7.0.00.0060.01815.58
5.6.400.0090.00614.29
5.6.390.0070.00714.18
5.6.380.0090.00414.23
5.6.370.0040.00914.40
5.6.360.0070.00814.21
5.6.350.0080.00514.44
5.6.340.0050.01114.40
5.6.330.0020.01414.28
5.6.320.0050.00914.33
5.6.310.0050.00814.28
5.6.300.0050.01114.10
5.6.290.0100.00514.66
5.6.280.0060.02416.51
5.6.270.0080.00414.27
5.6.260.0110.00214.22
5.6.250.0000.01414.27
5.6.240.0090.00514.30
5.6.230.0110.00514.14
5.6.220.0090.00714.20
5.6.210.0100.02716.32
5.6.200.0060.01615.50
5.6.190.0070.01916.45
5.6.180.0110.02016.27
5.6.170.0110.02116.40
5.6.160.0060.01916.29
5.6.150.0070.01615.58
5.6.140.0070.02915.53
5.6.130.0070.03215.49
5.6.120.0060.03116.44
5.6.110.0060.03416.51
5.6.100.0080.03216.48
5.6.90.0080.02916.42
5.6.80.0040.03216.23
5.6.70.0060.00814.14
5.6.60.0050.01214.22
5.6.50.0070.00614.01
5.6.40.0030.01014.08
5.6.30.0080.00814.19
5.6.20.0040.00814.18
5.6.10.0040.00814.18
5.6.00.0080.00414.07
5.5.380.0080.00714.05
5.5.370.0080.00514.11
5.5.360.0040.01013.99
5.5.350.1410.02116.35
5.5.340.0060.03315.44
5.5.330.0060.03416.29
5.5.320.0110.02816.24
5.5.310.0140.03016.10
5.5.300.0050.03315.45
5.5.290.0080.01915.45
5.5.280.0040.03516.52
5.5.270.0060.03316.35
5.5.260.0090.02816.34
5.5.250.0080.03116.14
5.5.240.0120.02716.15
5.5.230.0030.01314.00
5.5.220.0060.00814.16
5.5.210.0050.00814.11
5.5.200.0050.01014.15
5.5.190.0070.00714.19
5.5.180.0070.00513.97
5.5.170.0060.00613.98
5.5.160.0070.00514.05
5.5.150.0120.00114.01
5.5.140.0020.01314.12
5.5.130.0040.00713.92
5.5.120.0070.00614.02
5.5.110.0090.00414.08
5.5.100.0020.00914.23
5.5.90.0030.01013.88
5.5.80.0030.00814.12
5.5.70.0040.00714.06
5.5.60.0020.00714.05
5.5.50.0030.00713.87
5.5.40.0110.00514.05
5.5.30.0080.00814.06
5.5.20.0080.00514.13
5.5.10.0070.00514.14
5.5.00.0020.01113.92

preferences:
63.83 ms | 401 KiB | 5 Q