3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( (object)fopen('/', 'r') ); echo 'waa';
Output for 5.5.24 - 7.1.7
Warning: fopen(/): failed to open stream: 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