3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(set_include_path("/path/to/php\0extra")); echo get_include_path()."\n";
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught ValueError: set_include_path(): Argument #1 ($include_path) must not contain any null bytes in /in/4bRRN:2 Stack trace: #0 /in/4bRRN(2): set_include_path('/path/to/php\x00ex...') #1 {main} thrown in /in/4bRRN on line 2
Process exited with code 255.
Output for 5.4.41 - 5.4.45, 5.5.25 - 5.5.35, 5.6.9 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: set_include_path() expects parameter 1 to be a valid path, string given in /in/4bRRN on line 2 NULL .:
Output for 5.4.0 - 5.4.40, 5.5.24, 5.6.7 - 5.6.8
string(2) ".:" /path/to/php

preferences:
208.84 ms | 402 KiB | 244 Q