3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = 5 + "10 Little Piggies"; // $foo is integer (15) print $foo; $foo = 5 + "10 Small Pigs"; // $foo is integer (15) print $foo;
based on gnZ3n
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/pFXgi on line 3 15 Notice: A non well formed numeric value encountered in /in/pFXgi on line 5 15
Output for 5.3.19 - 7.0.20
1515