3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = trim("asdf "); $test2 = trim(" "); $echeck = (empty($test)) ? "error" : $test; $echeck2 = (empty($test2)) ? "error" : "opala"; echo $echeck . "\n" . $echeck2; exit(); ?>
based on ik7c0
Output for 5.3.22 - 7.2.0
asdf error