3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Test $var"; } class foo { var $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } class moo { static public $arr = array("test"); /*function test($var) { echo "Test $var"; }*/ } $a = new foo(); var_dump($a);; $a->arr[0]("testvalue"); moo::arr[0]("another one"); ?>

preferences:
39.89 ms | 402 KiB | 5 Q