3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 1000; $i++) { echo $i, "\t", $i%5, "\t", 6/$i%5, "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0 0 Warning: Division by zero in /in/hI2lN on line 3 0 1 1 1 2 2 3 3 3 2 4 4 1 5 0 1 6 1 1 7 2 0 8 3 0 9 4 0 10 0 0 11 1 0 12 2 0 13 3 0 14 4 0 15 0 0 16 1 0 17 2 0 18 3 0 19 4 0 20 0 0 21 1 0 22 2 0 23 3 0 24 4 0 25 0 0 26 1 0 27 2 0 28 3 0 29 4 0 30 0 0 31 1 0 32 2 0 33 3 0 34 4 0 35 0 0 36 1 0 37 2 0 38 3 0 39 4 0 40 0 0 41 1 0 42 2 0 43 3 0 44 4 0 45 0 0 46 1 0 47 2 0 48 3 0 49 4 0 50 0 0 51 1 0 52 2 0 53 3 0 54 4 0 55 0 0 56 1 0 57 2 0 58 3 0 59 4 0 60 0 0 61 1 0 62 2 0 63 3 0 64 4 0 65 0 0 66 1 0 67 2 0 68 3 0 69 4 0 70 0 0 71 1 0 72 2 0 73 3 0 74 4 0 75 0 0 76 1 0 77 2 0 78 3 0 79 4 0 80 0 0 81 1 0 82 2 0 83 3 0 84 4 0 85 0 0 86 1 0 87 2 0 88 3 0 89 4 0 90 0 0 91 1 0 92 2 0 93 3 0 94 4 0 95 0 0 96 1 0 97 2 0 98 3 0 99 4 0 100 0 0 101 1 0 102 2 0 103 3 0 104 4 0 105 0 0 106 1 0 107 2 0 108 3 0 109 4 0 110 0 0 111 1 0 112 2 0 113 3 0 114 4 0 115 0 0 116 1 0 117 2 0 118 3 0 119 4 0 120 0 0 121 1 0 122 2 0 123 3 0 124 4 0 125 0 0 126 1 0 127 2 0 128 3 0 129 4 0 130 0 0 131 1 0 132 2 0 133 3 0 134 4 0 135 0 0 136 1 0 137 2 0 138 3 0 139 4 0 140 0 0 141 1 0 142 2 0 143 3 0 144 4 0 145 0 0 146 1 0 147 2 0 148 3 0 149 4 0 150 0 0 151 1 0 152 2 0 153 3 0 154 4 0 155 0 0 156 1 0 157 2 0 158 3 0 159 4 0 160 0 0 161 1 0 162 2 0 163 3 0 164 4 0 165 0 0 166 1 0 167 2 0 168 3 0 169 4 0 170 0 0 171 1 0 172 2 0 173 3 0 174 4 0 175 0 0 176 1 0 177 2 0 178 3 0 179 4 0 180 0 0 181 1 0 182 2 0 183 3 0 184 4 0 185 0 0 186 1 0 187 2 0 188 3 0 189 4 0 190 0 0 191 1 0 192 2 0 193 3 0 194 4 0 195 0 0 196 1 0 197 2 0 198 3 0 199 4 0 200 0 0 201 1 0 202 2 0 203 3 0 204 4 0 205 0 0 206 1 0 207 2 0 208 3 0 209 4 0 210 0 0 211 1 0 212 2 0 213 3 0 214 4 0 215 0 0 216 1 0 217 2 0 218 3 0 219 4 0 220 0 0 221 1 0 222 2 0 223 3 0 224 4 0 225 0 0 226 1 0 227 2 0 228 3 0 229 4 0 230 0 0 231 1 0 232 2 0 233 3 0 234 4 0 235 0 0 236 1 0 237 2 0 238 3 0 239 4 0 240 0 0 241 1 0 242 2 0 243 3 0 244 4 0 245 0 0 246 1 0 247 2 0 248 3 0 249 4 0 250 0 0 251 1 0 252 2 0 253 3 0 254 4 0 255 0 0 256 1 0 257 2 0 258 3 0 259 4 0 260 0 0 261 1 0 262 2 0 263 3 0 264 4 0 265 0 0 266 1 0 267 2 0 268 3 0 269 4 0 270 0 0 271 1 0 272 2 0 273 3 0 274 4 0 275 0 0 276 1 0 277 2 0 278 3 0 279 4 0 280 0 0 281 1 0 282 2 0 283 3 0 284 4 0 285 0 0 286 1 0 287 2 0 288 3 0 289 4 0 290 0 0 291 1 0 292 2 0 293 3 0 294 4 0 295 0 0 296 1 0 297 2 0 298 3 0 299 4 0 300 0 0 301 1 0 302 2 0 303 3 0 304 4 0 305 0 0 306 1 0 307 2 0 308 3 0 309 4 0 310 0 0 311 1 0 312 2 0 313 3 0 314 4 0 315 0 0 316 1 0 317 2 0 318 3 0 319 4 0 320 0 0 321 1 0 322 2 0 323 3 0 324 4 0 325 0 0 326 1 0 327 2 0 328 3 0 329 4 0 330 0 0 331 1 0 332 2 0 333 3 0 334 4 0 335 0 0 336 1 0 337 2 0 338 3 0 339 4 0 340 0 0 341 1 0 342 2 0 343 3 0 344 4 0 345 0 0 346 1 0 347 2 0 348 3 0 349 4 0 350 0 0 351 1 0 352 2 0 353 3 0 354 4 0 355 0 0 356 1 0 357 2 0 358 3 0 359 4 0 360 0 0 361 1 0 362 2 0 363 3 0 364 4 0 365 0 0 366 1 0 367 2 0 368 3 0 369 4 0 370 0 0 371 1 0 372 2 0 373 3 0 374 4 0 375 0 0 376 1 0 377 2 0 378 3 0 379 4 0 380 0 0 381 1 0 382 2 0 383 3 0 384 4 0 385 0 0 386 1 0 387 2 0 388 3 0 389 4 0 390 0 0 391 1 0 392 2 0 393 3 0 394 4 0 395 0 0 396 1 0 397 2 0 398 3 0 399 4 0 400 0 0 401 1 0 402 2 0 403 3 0 404 4 0 405 0 0 406 1 0 407 2 0 408 3 0 409 4 0 410 0 0 411 1 0 412 2 0 413 3 0 414 4 0 415 0 0 416 1 0 417 2 0 418 3 0 419 4 0 420 0 0 421 1 0 422 2 0 423 3 0 424 4 0 425 0 0 426 1 0 427 2 0 428 3 0 429 4 0 430 0 0 431 1 0 432 2 0 433 3 0 434 4 0 435 0 0 436 1 0 437 2 0 438 3 0 439 4 0 440 0 0 441 1 0 442 2 0 443 3 0 444 4 0 445 0 0 446 1 0 447 2 0 448 3 0 449 4 0 450 0 0 451 1 0 452 2 0 453 3 0 454 4 0 455 0 0 456 1 0 457 2 0 458 3 0 459 4 0 460 0 0 461 1 0 462 2 0 463 3 0 464 4 0 465 0 0 466 1 0 467 2 0 468 3 0 469 4 0 470 0 0 471 1 0 472 2 0 473 3 0 474 4 0 475 0 0 476 1 0 477 2 0 478 3 0 479 4 0 480 0 0 481 1 0 482 2 0 483 3 0 484 4 0 485 0 0 486 1 0 487 2 0 488 3 0 489 4 0 490 0 0 491 1 0 492 2 0 493 3 0 494 4 0 495 0 0 496 1 0 497 2 0 498 3 0 499 4 0 500 0 0 501 1 0 502 2 0 503 3 0 504 4 0 505 0 0 506 1 0 507 2 0 508 3 0 509 4 0 510 0 0 511 1 0 512 2 0 513 3 0 514 4 0 515 0 0 516 1 0 517 2 0 518 3 0 519 4 0 520 0 0 521 1 0 522 2 0 523 3 0 524 4 0 525 0 0 526 1 0 527 2 0 528 3 0 529 4 0 530 0 0 531 1 0 532 2 0 533 3 0 534 4 0 535 0 0 536 1 0 537 2 0 538 3 0 539 4 0 540 0 0 541 1 0 542 2 0 543 3 0 544 4 0 545 0 0 546 1 0 547 2 0 548 3 0 549 4 0 550 0 0 551 1 0 552 2 0 553 3 0 554 4 0 555 0 0 556 1 0 557 2 0 558 3 0 559 4 0 560 0 0 561 1 0 562 2 0 563 3 0 564 4 0 565 0 0 566 1 0 567 2 0 568 3 0 569 4 0 570 0 0 571 1 0 572 2 0 573 3 0 574 4 0 575 0 0 576 1 0 577 2 0 578 3 0 579 4 0 580 0 0 581 1 0 582 2 0 583 3 0 584 4 0 585 0 0 586 1 0 587 2 0 588 3 0 589 4 0 590 0 0 591 1 0 592 2 0 593 3 0 594 4 0 595 0 0 596 1 0 597 2 0 598 3 0 599 4 0 600 0 0 601 1 0 602 2 0 603 3 0 604 4 0 605 0 0 606 1 0 607 2 0 608 3 0 609 4 0 610 0 0 611 1 0 612 2 0 613 3 0 614 4 0 615 0 0 616 1 0 617 2 0 618 3 0 619 4 0 620 0 0 621 1 0 622 2 0 623 3 0 624 4 0 625 0 0 626 1 0 627 2 0 628 3 0 629 4 0 630 0 0 631 1 0 632 2 0 633 3 0 634 4 0 635 0 0 636 1 0 637 2 0 638 3 0 639 4 0 640 0 0 641 1 0 642 2 0 643 3 0 644 4 0 645 0 0 646 1 0 647 2 0 648 3 0 649 4 0 650 0 0 651 1 0 652 2 0 653 3 0 654 4 0 655 0 0 656 1 0 657 2 0 658 3 0 659 4 0 660 0 0 661 1 0 662 2 0 663 3 0 664 4 0 665 0 0 666 1 0 667 2 0 668 3 0 669 4 0 670 0 0 671 1 0 672 2 0 673 3 0 674 4 0 675 0 0 676 1 0 677 2 0 678 3 0 679 4 0 680 0 0 681 1 0 682 2 0 683 3 0 684 4 0 685 0 0 686 1 0 687 2 0 688 3 0 689 4 0 690 0 0 691 1 0 692 2 0 693 3 0 694 4 0 695 0 0 696 1 0 697 2 0 698 3 0 699 4 0 700 0 0 701 1 0 702 2 0 703 3 0 704 4 0 705 0 0 706 1 0 707 2 0 708 3 0 709 4 0 710 0 0 711 1 0 712 2 0 713 3 0 714 4 0 715 0 0 716 1 0 717 2 0 718 3 0 719 4 0 720 0 0 721 1 0 722 2 0 723 3 0 724 4 0 725 0 0 726 1 0 727 2 0 728 3 0 729 4 0 730 0 0 731 1 0 732 2 0 733 3 0 734 4 0 735 0 0 736 1 0 737 2 0 738 3 0 739 4 0 740 0 0 741 1 0 742 2 0 743 3 0 744 4 0 745 0 0 746 1 0 747 2 0 748 3 0 749 4 0 750 0 0 751 1 0 752 2 0 753 3 0 754 4 0 755 0 0 756 1 0 757 2 0 758 3 0 759 4 0 760 0 0 761 1 0 762 2 0 763 3 0 764 4 0 765 0 0 766 1 0 767 2 0 768 3 0 769 4 0 770 0 0 771 1 0 772 2 0 773 3 0 774 4 0 775 0 0 776 1 0 777 2 0 778 3 0 779 4 0 780 0 0 781 1 0 782 2 0 783 3 0 784 4 0 785 0 0 786 1 0 787 2 0 788 3 0 789 4 0 790 0 0 791 1 0 792 2 0 793 3 0 794 4 0 795 0 0 796 1 0 797 2 0 798 3 0 799 4 0 800 0 0 801 1 0 802 2 0 803 3 0 804 4 0 805 0 0 806 1 0 807 2 0 808 3 0 809 4 0 810 0 0 811 1 0 812 2 0 813 3 0 814 4 0 815 0 0 816 1 0 817 2 0 818 3 0 819 4 0 820 0 0 821 1 0 822 2 0 823 3 0 824 4 0 825 0 0 826 1 0 827 2 0 828 3 0 829 4 0 830 0 0 831 1 0 832 2 0 833 3 0 834 4 0 835 0 0 836 1 0 837 2 0 838 3 0 839 4 0 840 0 0 841 1 0 842 2 0 843 3 0 844 4 0 845 0 0 846 1 0 847 2 0 848 3 0 849 4 0 850 0 0 851 1 0 852 2 0 853 3 0 854 4 0 855 0 0 856 1 0 857 2 0 858 3 0 859 4 0 860 0 0 861 1 0 862 2 0 863 3 0 864 4 0 865 0 0 866 1 0 867 2 0 868 3 0 869 4 0 870 0 0 871 1 0 872 2 0 873 3 0 874 4 0 875 0 0 876 1 0 877 2 0 878 3 0 879 4 0 880 0 0 881 1 0 882 2 0 883 3 0 884 4 0 885 0 0 886 1 0 887 2 0 888 3 0 889 4 0 890 0 0 891 1 0 892 2 0 893 3 0 894 4 0 895 0 0 896 1 0 897 2 0 898 3 0 899 4 0 900 0 0 901 1 0 902 2 0 903 3 0 904 4 0 905 0 0 906 1 0 907 2 0 908 3 0 909 4 0 910 0 0 911 1 0 912 2 0 913 3 0 914 4 0 915 0 0 916 1 0 917 2 0 918 3 0 919 4 0 920 0 0 921 1 0 922 2 0 923 3 0 924 4 0 925 0 0 926 1 0 927 2 0 928 3 0 929 4 0 930 0 0 931 1 0 932 2 0 933 3 0 934 4 0 935 0 0 936 1 0 937 2 0 938 3 0 939 4 0 940 0 0 941 1 0 942 2 0 943 3 0 944 4 0 945 0 0 946 1 0 947 2 0 948 3 0 949 4 0 950 0 0 951 1 0 952 2 0 953 3 0 954 4 0 955 0 0 956 1 0 957 2 0 958 3 0 959 4 0 960 0 0 961 1 0 962 2 0 963 3 0 964 4 0 965 0 0 966 1 0 967 2 0 968 3 0 969 4 0 970 0 0 971 1 0 972 2 0 973 3 0 974 4 0 975 0 0 976 1 0 977 2 0 978 3 0 979 4 0 980 0 0 981 1 0 982 2 0 983 3 0 984 4 0 985 0 0 986 1 0 987 2 0 988 3 0 989 4 0 990 0 0 991 1 0 992 2 0 993 3 0 994 4 0 995 0 0 996 1 0 997 2 0 998 3 0 999 4 0