3v4l.org

run code in 150+ 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
o
Output for 5.3.14 - 5.3.29, 5.4.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
x