3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.14, 5.4.0 - 5.4.4
Parse error: syntax error, unexpected '}' in /in/amT2O on line 8
Process exited with code 255.

preferences:
168.42 ms | 1386 KiB | 27 Q