3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php assert('file_get_contents("/etc/passwd")');
Output for 7.2.6
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/o3kSA on line 2 Warning: file_get_contents(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed path(s): (/tmp:/in) in /in/o3kSA(2) : assert code on line 1 Warning: file_get_contents(/etc/passwd): failed to open stream: Operation not permitted in /in/o3kSA(2) : assert code on line 1 Warning: assert(): Assertion "file_get_contents("/etc/passwd")" failed in /in/o3kSA on line 2
Output for 7.2.0
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/o3kSA on line 2
Output for 7.1.20
Warning: file_get_contents(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed path(s): (/tmp:/in) in /in/o3kSA(2) : assert code on line 1 Warning: file_get_contents(/etc/passwd): failed to open stream: Operation not permitted in /in/o3kSA(2) : assert code on line 1 Warning: assert(): Assertion "file_get_contents("/etc/passwd")" failed in /in/o3kSA on line 2
Output for 4.3.0 - 7.1.10