3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function showCombinations($string, $traits, $i) { if ($i >= count($traits)) echo trim($string); else { foreach ($traits[$i] as $trait) showCombinations("$string $trait", $traits, $i + 1); } } $sec="-"; $brk="<br>"; $traits = array ( array(''290', '679','689','149','347','690','169','790','890', '260','567','568','100','147','200','148','300', '400','168','240','600','250','700','279','800', '270','900','280','380','246','248','249','259', '269','360','470','480','228','229','220', '258','122','268','369','224','144','460','226', '255','680','266','188','468','233','244', '128','129','120','140','123','448','124','223', '125','288','225','127','299','236','344','238', '445','446','230','366','466','160','440', '180','145','245','660','256','455','447','278', '477','234','488','588','345','688','346','699','349','880', '340','189','289','235','668','678','669', '490','788','789','456','889','367','899', '458','566','450','667','389','677','589', '670','780','457','467','478','569',), array($sec), array('290','138','679','139','689','149','347','159','690', '169','790','179','890','567','135','136','578', '158','250','279','270','550','119','110','112', '249','113','259','114','269','115','350','116', '370','118','155','247','229','257','277','133', '579','227','570','255','337','357','358','330', '233','469','199','479','335','129','336','355', '239','338','123','223','125','225','299','236', '156','499','445','356','230','150','377', '134','145','334','245','237','256','599','590', '455','267','447','178','556','449','170','477', '234','559','190','489','345','779','130','699', '799','557','189','558','289','577','235','678', '669','390','778','789','770','456','889','367', '899','458','378','990','667','677','589', '670','457','467','459','478','569',), array($brk), ); showCombinations('', $traits, 0); ?>
Output for 5.4.0 - 5.5.12
Parse error: syntax error, unexpected '290' (T_LNUMBER), expecting ')' in /in/hAFnc on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /in/hAFnc on line 15
Process exited with code 255.