3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = 0.021; $tmp = explode ('.', $paymoney); if (strlen($tmp[1]) > 2) { echo 1; } else { echo 2; }
based on UR0u5
Output for 5.6.0 - 7.3.0alpha1
Notice: Undefined variable: paymoney in /in/6kH71 on line 3 Notice: Undefined offset: 1 in /in/6kH71 on line 4 2