3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string ='jean carlo'; echo array_walk(str_split($string), function($entry){$total+=ord($entry);}, $total=0);
based on J8iSv
Output for 7.0.0 - 7.2.6
Notice: Only variables should be passed by reference in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 1
Output for 5.3.18 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 Notice: Undefined variable: total in /in/KnYrO on line 6 1