3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file = fopen(__FILE__, 'r'); $array[$file] = true;
based on 0K0RH
Output for 7.0.0 - 7.2.0
Notice: Resource ID#5 used as offset, casting to integer (5) in /in/D70CE on line 4
Output for 5.5.0 - 5.6.28
Strict Standards: Resource ID#5 used as offset, casting to integer (5) in /in/D70CE on line 4