3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $amt = '0.0'; $amount = 'M=$1.5'; $amt = $amount * (substr($amt , 0, (strlen($amt)-1) ) / 100); $amt = round($amt, 2, PHP_ROUND_HALF_UP); echo (float)$amt;
based on r3WXC
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/NU53F on line 6 0
Output for 5.3.20 - 7.0.20
0