3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data1 = array('1','2','3','4'); $data2 = array('1','2','3','4'); $data3 = array('1','2','3'); for($a = 0; $a < count($data1); $a++){ for($b = 0; $b < count($data2); $b++){ for($c = 0; $c < count($data3); $c++){ echo $data1[$a].$data2[$b].$data3[$c].'<br>'; } } }
Output for 4.3.0 - 7.1.0
111<br>112<br>113<br>121<br>122<br>123<br>131<br>132<br>133<br>141<br>142<br>143<br>211<br>212<br>213<br>221<br>222<br>223<br>231<br>232<br>233<br>241<br>242<br>243<br>311<br>312<br>313<br>321<br>322<br>323<br>331<br>332<br>333<br>341<br>342<br>343<br>411<br>412<br>413<br>421<br>422<br>423<br>431<br>432<br>433<br>441<br>442<br>443<br>