3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($or = 2001; $or < 2182; $or++) { echo $or."<br"; } for($new = 1790; $new < 2001; $new++) { echo $new."<br>"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2001<br2002<br2003<br2004<br2005<br2006<br2007<br2008<br2009<br2010<br2011<br2012<br2013<br2014<br2015<br2016<br2017<br2018<br2019<br2020<br2021<br2022<br2023<br2024<br2025<br2026<br2027<br2028<br2029<br2030<br2031<br2032<br2033<br2034<br2035<br2036<br2037<br2038<br2039<br2040<br2041<br2042<br2043<br2044<br2045<br2046<br2047<br2048<br2049<br2050<br2051<br2052<br2053<br2054<br2055<br2056<br2057<br2058<br2059<br2060<br2061<br2062<br2063<br2064<br2065<br2066<br2067<br2068<br2069<br2070<br2071<br2072<br2073<br2074<br2075<br2076<br2077<br2078<br2079<br2080<br2081<br2082<br2083<br2084<br2085<br2086<br2087<br2088<br2089<br2090<br2091<br2092<br2093<br2094<br2095<br2096<br2097<br2098<br2099<br2100<br2101<br2102<br2103<br2104<br2105<br2106<br2107<br2108<br2109<br2110<br2111<br2112<br2113<br2114<br2115<br2116<br2117<br2118<br2119<br2120<br2121<br2122<br2123<br2124<br2125<br2126<br2127<br2128<br2129<br2130<br2131<br2132<br2133<br2134<br2135<br2136<br2137<br2138<br2139<br2140<br2141<br2142<br2143<br2144<br2145<br2146<br2147<br2148<br2149<br2150<br2151<br2152<br2153<br2154<br2155<br2156<br2157<br2158<br2159<br2160<br2161<br2162<br2163<br2164<br2165<br2166<br2167<br2168<br2169<br2170<br2171<br2172<br2173<br2174<br2175<br2176<br2177<br2178<br2179<br2180<br2181<br1790<br>1791<br>1792<br>1793<br>1794<br>1795<br>1796<br>1797<br>1798<br>1799<br>1800<br>1801<br>1802<br>1803<br>1804<br>1805<br>1806<br>1807<br>1808<br>1809<br>1810<br>1811<br>1812<br>1813<br>1814<br>1815<br>1816<br>1817<br>1818<br>1819<br>1820<br>1821<br>1822<br>1823<br>1824<br>1825<br>1826<br>1827<br>1828<br>1829<br>1830<br>1831<br>1832<br>1833<br>1834<br>1835<br>1836<br>1837<br>1838<br>1839<br>1840<br>1841<br>1842<br>1843<br>1844<br>1845<br>1846<br>1847<br>1848<br>1849<br>1850<br>1851<br>1852<br>1853<br>1854<br>1855<br>1856<br>1857<br>1858<br>1859<br>1860<br>1861<br>1862<br>1863<br>1864<br>1865<br>1866<br>1867<br>1868<br>1869<br>1870<br>1871<br>1872<br>1873<br>1874<br>1875<br>1876<br>1877<br>1878<br>1879<br>1880<br>1881<br>1882<br>1883<br>1884<br>1885<br>1886<br>1887<br>1888<br>1889<br>1890<br>1891<br>1892<br>1893<br>1894<br>1895<br>1896<br>1897<br>1898<br>1899<br>1900<br>1901<br>1902<br>1903<br>1904<br>1905<br>1906<br>1907<br>1908<br>1909<br>1910<br>1911<br>1912<br>1913<br>1914<br>1915<br>1916<br>1917<br>1918<br>1919<br>1920<br>1921<br>1922<br>1923<br>1924<br>1925<br>1926<br>1927<br>1928<br>1929<br>1930<br>1931<br>1932<br>1933<br>1934<br>1935<br>1936<br>1937<br>1938<br>1939<br>1940<br>1941<br>1942<br>1943<br>1944<br>1945<br>1946<br>1947<br>1948<br>1949<br>1950<br>1951<br>1952<br>1953<br>1954<br>1955<br>1956<br>1957<br>1958<br>1959<br>1960<br>1961<br>1962<br>1963<br>1964<br>1965<br>1966<br>1967<br>1968<br>1969<br>1970<br>1971<br>1972<br>1973<br>1974<br>1975<br>1976<br>1977<br>1978<br>1979<br>1980<br>1981<br>1982<br>1983<br>1984<br>1985<br>1986<br>1987<br>1988<br>1989<br>1990<br>1991<br>1992<br>1993<br>1994<br>1995<br>1996<br>1997<br>1998<br>1999<br>2000<br>