3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 10 ; $j = 1 ; $i += j ; echo number_format($i,2,'.','');
based on pkAZH
Output for 7.2.0
Warning: Use of undefined constant j - assumed 'j' (this will throw an Error in a future version of PHP) in /in/96Eh6 on line 5 Warning: A non-numeric value encountered in /in/96Eh6 on line 5 10.00
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant j - assumed 'j' in /in/96Eh6 on line 5 Warning: A non-numeric value encountered in /in/96Eh6 on line 5 10.00
Output for 5.3.22 - 7.0.20
Notice: Use of undefined constant j - assumed 'j' in /in/96Eh6 on line 5 10.00