3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = ['test' => fopen('php://stdin')]; $_null = null; stream_select($x, $x, $_null, 1); var_djmp($x);
Output for 7.0.0 - 7.2.0
Warning: fopen() expects at least 2 parameters, 1 given in /in/FhmQt on line 4 Warning: stream_select(): supplied argument is not a valid stream resource in /in/FhmQt on line 6 Warning: stream_select(): supplied argument is not a valid stream resource in /in/FhmQt on line 6 Warning: stream_select(): No stream arrays were passed in /in/FhmQt on line 6 Fatal error: Uncaught Error: Call to undefined function var_djmp() in /in/FhmQt:8 Stack trace: #0 {main} thrown in /in/FhmQt on line 8
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Warning: fopen() expects at least 2 parameters, 1 given in /in/FhmQt on line 4 Warning: stream_select(): supplied argument is not a valid stream resource in /in/FhmQt on line 6 Warning: stream_select(): supplied argument is not a valid stream resource in /in/FhmQt on line 6 Warning: stream_select(): No stream arrays were passed in /in/FhmQt on line 6 Fatal error: Call to undefined function var_djmp() in /in/FhmQt on line 8
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/FhmQt on line 4
Process exited with code 255.