3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start_w = "SIR.14_SER_"; for($i=1; $i<= 70; $i++) { if($i<10) { echo $start_w.'00'.$i.'<br>'; }elseif($i<100){ echo $start_w.'0'.$i.'<br>'; } }
based on psGgh
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
SIR.14_SER_001<br>SIR.14_SER_002<br>SIR.14_SER_003<br>SIR.14_SER_004<br>SIR.14_SER_005<br>SIR.14_SER_006<br>SIR.14_SER_007<br>SIR.14_SER_008<br>SIR.14_SER_009<br>SIR.14_SER_010<br>SIR.14_SER_011<br>SIR.14_SER_012<br>SIR.14_SER_013<br>SIR.14_SER_014<br>SIR.14_SER_015<br>SIR.14_SER_016<br>SIR.14_SER_017<br>SIR.14_SER_018<br>SIR.14_SER_019<br>SIR.14_SER_020<br>SIR.14_SER_021<br>SIR.14_SER_022<br>SIR.14_SER_023<br>SIR.14_SER_024<br>SIR.14_SER_025<br>SIR.14_SER_026<br>SIR.14_SER_027<br>SIR.14_SER_028<br>SIR.14_SER_029<br>SIR.14_SER_030<br>SIR.14_SER_031<br>SIR.14_SER_032<br>SIR.14_SER_033<br>SIR.14_SER_034<br>SIR.14_SER_035<br>SIR.14_SER_036<br>SIR.14_SER_037<br>SIR.14_SER_038<br>SIR.14_SER_039<br>SIR.14_SER_040<br>SIR.14_SER_041<br>SIR.14_SER_042<br>SIR.14_SER_043<br>SIR.14_SER_044<br>SIR.14_SER_045<br>SIR.14_SER_046<br>SIR.14_SER_047<br>SIR.14_SER_048<br>SIR.14_SER_049<br>SIR.14_SER_050<br>SIR.14_SER_051<br>SIR.14_SER_052<br>SIR.14_SER_053<br>SIR.14_SER_054<br>SIR.14_SER_055<br>SIR.14_SER_056<br>SIR.14_SER_057<br>SIR.14_SER_058<br>SIR.14_SER_059<br>SIR.14_SER_060<br>SIR.14_SER_061<br>SIR.14_SER_062<br>SIR.14_SER_063<br>SIR.14_SER_064<br>SIR.14_SER_065<br>SIR.14_SER_066<br>SIR.14_SER_067<br>SIR.14_SER_068<br>SIR.14_SER_069<br>SIR.14_SER_070<br>