3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = array(); if (count($data > 0)) { echo 'one'; } else { echo 'two'; } echo "\n"; if (count($data) > 0) { echo 'one'; } else { echo 'two'; } echo "\n"; echo count($data); echo "\n"; echo count($data > 0 );
based on DNGW6
Output for 4.3.0 - 7.1.0
one two 0 1