3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); realpath("\0");
Output for 7.0.30 - 7.3.0alpha1
Fatal error: Uncaught TypeError: realpath() expects parameter 1 to be a valid path, string given in /in/ohjYI:5 Stack trace: #0 /in/ohjYI(5): realpath('\x00') #1 {main} thrown in /in/ohjYI on line 5
Process exited with code 255.
Output for hhvm-3.22.0
Warning: realpath() expects parameter 1 to be a valid path, string given in /in/ohjYI on line -1
Output for hhvm-3.18.5 - 3.21.3
Warning: realpath() expects parameter 1 to be a valid path, string given in /in/ohjYI on line 5
Output for 5.6.30
Warning: Unsupported declare 'strict_types' in /in/ohjYI on line 3 Warning: realpath() expects parameter 1 to be a valid path, string given in /in/ohjYI on line 5