3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 10000.00; if (strpos($number, '.') !== false) { list($number, $fraction) = explode('.', $number); if(empty($fraction)){ $fraction = "00"; } } echo $fraction; ?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: fraction in /in/M1ddN on line 12
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: fraction in /in/M1ddN on line 12