3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [ 'a' => [ 'b' => ['c', 'd'] ] ]; array_walk_recursive($a, function() use (& $totalTakeaways) { $totalTakeaways++; });
based on 4XiNc
Output for 5.4.2 - 7.2.0
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/pduQd on line 3
Process exited with code 255.