3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $notPublic = "hello"; public function myMethod() { $map = array_map( function($str) { return $this->notPublic." ".$str; }, array( "world", "universe", "galaxy" ) ); return $map; } } $test = new Test(); print_r($test->myMethod());

preferences:
47.22 ms | 402 KiB | 5 Q