3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { public $mark; } $a = new X(); $a->mark = "instance1"; # in background there is a new X instance now $b = new X(); $b->mark = "instance2"; # and another $c =& $a; $a = $b; echo $a->mark . "\n"; echo $b->mark . "\n"; echo $c->mark . "\n"; function fn(X $x) { echo "does type hinting work?\n"; } fn($c);

This is an error 404

There are `0` results


preferences:
146.43 ms | 1399 KiB | 7 Q