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 $str = "test"; } $a = new foo(); var_dump($a); $a->arr[0]("testvalue"); moo::str("another one"); ?>

preferences:
40.46 ms | 402 KiB | 5 Q