3v4l.org

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

preferences:
81.15 ms | 402 KiB | 5 Q