3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = '1.321,22'; $real_integer = filter_var($num, FILTER_SANITIZE_NUMBER_INT); echo $real_integer;
based on guBgK
Output for 5.6.0 - 7.3.0rc4
132122