3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $amount = '10,95'; $cents = explode(',', $amount); if (!isset($cents[0])) $cents[1] = '00'; $cents = implode($cents); echo $cents;
Output for 4.3.0 - 7.2.0
1095