3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump((int) fopen('php://input', 'r'));
based on hMhDM
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.1.0
int(7)
Output for hhvm-3.10.0 - 3.12.0
int(4)
Output for 5.2.3 - 5.5.35
int(5)
Output for 5.0.0 - 5.2.2
int(2)
Output for 4.3.0 - 4.4.9
int(1)