3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('H', '3H', '1,1'); foreach ($a as $i) { echo number_format($i, 1); }
Output for 7.0.0 - 7.1.0
Warning: number_format() expects parameter 1 to be float, string given in /in/5sChl on line 4 Notice: A non well formed numeric value encountered in /in/5sChl on line 4 3.0 Notice: A non well formed numeric value encountered in /in/5sChl on line 4 1.0
Output for hhvm-3.10.0 - 3.12.0
Warning: number_format() expects parameter 1 to be double, string given in /in/5sChl on line 4 3.01.0
Output for 5.3.0 - 5.6.28
Warning: number_format() expects parameter 1 to be double, string given in /in/5sChl on line 4 Notice: A non well formed numeric value encountered in /in/5sChl on line 4 3.0 Notice: A non well formed numeric value encountered in /in/5sChl on line 4 1.0
Output for 4.3.0 - 5.2.17
0.03.01.0