3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fp = fopen("resourcE", 'r'); var_dump(json_encode($fp));
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: fopen(resourcE): failed to open stream: No such file or directory in /in/UIktS on line 2 string(5) "false"
Output for hhvm-3.10.0 - 3.12.0
Warning: No such file or directory in /in/UIktS on line 2 string(5) "false"
Output for 5.0.0 - 5.1.6
Warning: fopen(resourcE): failed to open stream: No such file or directory in /in/UIktS on line 2 Fatal error: Call to undefined function json_encode() in /in/UIktS on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: fopen(resourcE): failed to open stream: No such file or directory in /in/UIktS on line 2 Fatal error: Call to undefined function: json_encode() in /in/UIktS on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: fopen(resourcE): failed to open stream: No such file or directory in /in/UIktS on line 2 Fatal error: Call to undefined function: json_encode() in /in/UIktS on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: fopen(resourcE) [http://www.php.net/function.fopen]: failed to create stream: No such file or directory in /in/UIktS on line 2 Fatal error: Call to undefined function: json_encode() in /in/UIktS on line 4