3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( (object)fopen('/', 'r') ); echo 'waa';
Output for 5.5.24 - 5.6.28, 7.0.0 - 7.1.0
Warning: fopen(/): failed to open stream: Permission denied in /in/EYnjC on line 3 object(stdClass)#1 (1) { ["scalar"]=> bool(false) } waa
Output for hhvm-3.12.0
Warning: Permission denied in /in/EYnjC on line -1 object(stdClass)#1 (1) { ["scalar"]=> bool(false) } waa
Output for hhvm-3.10.0
Warning: Permission denied in /in/EYnjC on line 3 object(stdClass)#1 (1) { ["scalar"]=> bool(false) } waa
Output for 5.2.3 - 5.4.45
object(stdClass)#1 (1) { ["scalar"]=> resource(5) of type (stream) } waa
Output for 5.0.0 - 5.2.2
object(stdClass)#1 (1) { ["scalar"]=> resource(2) of type (stream) } waa
Output for 4.3.0 - 4.4.9
object(stdClass)(1) { ["scalar"]=> resource(1) of type (stream) } waa