3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 00000; $i <= 01000; $i++) { $i=str_pad($i, 5, '0', STR_PAD_LEFT); echo $i."<br>"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
00000<br>00001<br>00002<br>00003<br>00004<br>00005<br>00006<br>00007<br>00008<br>00009<br>00010<br>00011<br>00012<br>00013<br>00014<br>00015<br>00016<br>00017<br>00018<br>00019<br>00020<br>00021<br>00022<br>00023<br>00024<br>00025<br>00026<br>00027<br>00028<br>00029<br>00030<br>00031<br>00032<br>00033<br>00034<br>00035<br>00036<br>00037<br>00038<br>00039<br>00040<br>00041<br>00042<br>00043<br>00044<br>00045<br>00046<br>00047<br>00048<br>00049<br>00050<br>00051<br>00052<br>00053<br>00054<br>00055<br>00056<br>00057<br>00058<br>00059<br>00060<br>00061<br>00062<br>00063<br>00064<br>00065<br>00066<br>00067<br>00068<br>00069<br>00070<br>00071<br>00072<br>00073<br>00074<br>00075<br>00076<br>00077<br>00078<br>00079<br>00080<br>00081<br>00082<br>00083<br>00084<br>00085<br>00086<br>00087<br>00088<br>00089<br>00090<br>00091<br>00092<br>00093<br>00094<br>00095<br>00096<br>00097<br>00098<br>00099<br>00100<br>00101<br>00102<br>00103<br>00104<br>00105<br>00106<br>00107<br>00108<br>00109<br>00110<br>00111<br>00112<br>00113<br>00114<br>00115<br>00116<br>00117<br>00118<br>00119<br>00120<br>00121<br>00122<br>00123<br>00124<br>00125<br>00126<br>00127<br>00128<br>00129<br>00130<br>00131<br>00132<br>00133<br>00134<br>00135<br>00136<br>00137<br>00138<br>00139<br>00140<br>00141<br>00142<br>00143<br>00144<br>00145<br>00146<br>00147<br>00148<br>00149<br>00150<br>00151<br>00152<br>00153<br>00154<br>00155<br>00156<br>00157<br>00158<br>00159<br>00160<br>00161<br>00162<br>00163<br>00164<br>00165<br>00166<br>00167<br>00168<br>00169<br>00170<br>00171<br>00172<br>00173<br>00174<br>00175<br>00176<br>00177<br>00178<br>00179<br>00180<br>00181<br>00182<br>00183<br>00184<br>00185<br>00186<br>00187<br>00188<br>00189<br>00190<br>00191<br>00192<br>00193<br>00194<br>00195<br>00196<br>00197<br>00198<br>00199<br>00200<br>00201<br>00202<br>00203<br>00204<br>00205<br>00206<br>00207<br>00208<br>00209<br>00210<br>00211<br>00212<br>00213<br>00214<br>00215<br>00216<br>00217<br>00218<br>00219<br>00220<br>00221<br>00222<br>00223<br>00224<br>00225<br>00226<br>00227<br>00228<br>00229<br>00230<br>00231<br>00232<br>00233<br>00234<br>00235<br>00236<br>00237<br>00238<br>00239<br>00240<br>00241<br>00242<br>00243<br>00244<br>00245<br>00246<br>00247<br>00248<br>00249<br>00250<br>00251<br>00252<br>00253<br>00254<br>00255<br>00256<br>00257<br>00258<br>00259<br>00260<br>00261<br>00262<br>00263<br>00264<br>00265<br>00266<br>00267<br>00268<br>00269<br>00270<br>00271<br>00272<br>00273<br>00274<br>00275<br>00276<br>00277<br>00278<br>00279<br>00280<br>00281<br>00282<br>00283<br>00284<br>00285<br>00286<br>00287<br>00288<br>00289<br>00290<br>00291<br>00292<br>00293<br>00294<br>00295<br>00296<br>00297<br>00298<br>00299<br>00300<br>00301<br>00302<br>00303<br>00304<br>00305<br>00306<br>00307<br>00308<br>00309<br>00310<br>00311<br>00312<br>00313<br>00314<br>00315<br>00316<br>00317<br>00318<br>00319<br>00320<br>00321<br>00322<br>00323<br>00324<br>00325<br>00326<br>00327<br>00328<br>00329<br>00330<br>00331<br>00332<br>00333<br>00334<br>00335<br>00336<br>00337<br>00338<br>00339<br>00340<br>00341<br>00342<br>00343<br>00344<br>00345<br>00346<br>00347<br>00348<br>00349<br>00350<br>00351<br>00352<br>00353<br>00354<br>00355<br>00356<br>00357<br>00358<br>00359<br>00360<br>00361<br>00362<br>00363<br>00364<br>00365<br>00366<br>00367<br>00368<br>00369<br>00370<br>00371<br>00372<br>00373<br>00374<br>00375<br>00376<br>00377<br>00378<br>00379<br>00380<br>00381<br>00382<br>00383<br>00384<br>00385<br>00386<br>00387<br>00388<br>00389<br>00390<br>00391<br>00392<br>00393<br>00394<br>00395<br>00396<br>00397<br>00398<br>00399<br>00400<br>00401<br>00402<br>00403<br>00404<br>00405<br>00406<br>00407<br>00408<br>00409<br>00410<br>00411<br>00412<br>00413<br>00414<br>00415<br>00416<br>00417<br>00418<br>00419<br>00420<br>00421<br>00422<br>00423<br>00424<br>00425<br>00426<br>00427<br>00428<br>00429<br>00430<br>00431<br>00432<br>00433<br>00434<br>00435<br>00436<br>00437<br>00438<br>00439<br>00440<br>00441<br>00442<br>00443<br>00444<br>00445<br>00446<br>00447<br>00448<br>00449<br>00450<br>00451<br>00452<br>00453<br>00454<br>00455<br>00456<br>00457<br>00458<br>00459<br>00460<br>00461<br>00462<br>00463<br>00464<br>00465<br>00466<br>00467<br>00468<br>00469<br>00470<br>00471<br>00472<br>00473<br>00474<br>00475<br>00476<br>00477<br>00478<br>00479<br>00480<br>00481<br>00482<br>00483<br>00484<br>00485<br>00486<br>00487<br>00488<br>00489<br>00490<br>00491<br>00492<br>00493<br>00494<br>00495<br>00496<br>00497<br>00498<br>00499<br>00500<br>00501<br>00502<br>00503<br>00504<br>00505<br>00506<br>00507<br>00508<br>00509<br>00510<br>00511<br>00512<br>