3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $scores = array('110.00', '67%'); foreach ($scores as $score) print_r(array('score' => $score, 'is_numeric' => is_numeric($score), 'is_float' => is_float($score), 'floatval' => floatval($score)));
based on Kv4f4
Output for 4.3.0 - 7.3.0rc4
Array ( [score] => 110.00 [is_numeric] => 1 [is_float] => [floatval] => 110 ) Array ( [score] => 67% [is_numeric] => [is_float] => [floatval] => 67 )