3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class TestClass { private $items = array(1,2,3); private $factor = 3; function getMultiplied() { print_r(array_map(function($item) { return $item * $this->factor }, $this->items)); } }
Output for 5.3.0 - 5.4.4
Parse error: syntax error, unexpected '}' in /in/amT2O on line 8
Process exited with code 255.