3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val1 = '4,3'; $val2 = '4.4'; var_dump(array( array( $val1, $val2, ), array( (double) $val1, (double) $val2, ), array( (float) $val1, (float) $val2, ), ));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> array(2) { [0]=> string(3) "4,3" [1]=> string(3) "4.4" } [1]=> array(2) { [0]=> float(4) [1]=> float(4.4) } [2]=> array(2) { [0]=> float(4) [1]=> float(4.4) } }