3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Node { protected $nid; public function __construct($nid) { $this->nid = $nid; } } $node = new Node(12); if (isset($node->book['bid'])) { print 'it is a book node'; }
Output for 5.3.23 - 7.3.0rc3