3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $a = (float) "3.4€"; echo "\n"; echo $a = floatval( "3.4€"); echo "\n"; echo $a = floatval( "3.4€"*1); echo "\n"; echo $a = (float) "3.4€"*1;
based on k09Eg
Output for 7.1.0 - 7.2.0
3.4 3.4 Notice: A non well formed numeric value encountered in /in/DQq1g on line 8 3.4 3.4
Output for 5.3.19 - 7.0.20
3.4 3.4 3.4 3.4