3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object)array('123' => '456'); print_r($obj); echo $obj->{'123'},"\n"; if (!property_exists($obj,'123')) echo 'property 123 does not exist',"\n"; if (is_null($obj->{'123'})) echo 'property 123 is null',"\n"; if (!is_null($obj->{123})) echo 'property 123 is not null',"\n";

preferences:
47.14 ms | 402 KiB | 5 Q