3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myvar->text1=' there'; $myvar->text2=' and here'; $myvar->text2->text1=' star'; echo "And now, the result is [", print_r($myvar, true), "] ***";

preferences:
36.74 ms | 402 KiB | 5 Q