3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lists = array('hoge'); array_walk($lists, 'trim'); if (current($lists) !== false) { echo 'o'; } else { echo 'x'; }
Output for 5.2.15 - 5.3.13, 5.4.0 - 5.4.3, 7.1.0 - 7.3.0rc4
o
Output for 5.3.14 - 5.3.29, 5.4.4 - 7.0.20
x