3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.1.23 - 8.1.31, 8.2.7 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Warning: Undefined array key "REQUEST_URI" in /in/SLYo9 on line 3 Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /in/SLYo9 on line 4 Warning: Undefined array key 1 in /in/SLYo9 on line 6 <ul id="mainnav"> <li class="active"><a href="#">Home</a></li> <li class=""><a href="#">Tutorials</a></li> <li class=""><a href="#">Resources</a></li> <li class=""><a href="#">Library</a></li> <li class=""><a href="#">Our Projects</a></li> <li class=""><a href="#">Community</a></li> </ul>
Output for 7.4.3
Notice: Undefined index: REQUEST_URI in /in/SLYo9 on line 3 Notice: Undefined offset: 1 in /in/SLYo9 on line 6 <ul id="mainnav"> <li class="active"><a href="#">Home</a></li> <li class=""><a href="#">Tutorials</a></li> <li class=""><a href="#">Resources</a></li> <li class=""><a href="#">Library</a></li> <li class=""><a href="#">Our Projects</a></li> <li class=""><a href="#">Community</a></li> </ul>

preferences:
71.09 ms | 413 KiB | 5 Q