3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php $xml = new SimpleXMLElement('<tag></tag>'); echo 'An empty SimpleXMLElement is '; var_export((bool) $xml); echo "\n"; $xml = new SimpleXMLElement('<tag>data</tag>'); echo 'A SimpleXMLElement with data is '; var_export((bool) $xml); echo "\n"; $obj = new stdClass(); echo 'An empty stdClass is '; var_export((bool) $obj);based on MCLF8

Abusive script

This script was stopped while abusing our resources

Output for hhvm-3.2.0 - 3.3.1

Process exited with code 137.
Output for hhvm-3.1.0
An empty SimpleXMLElement is false A SimpleXMLElement with data is true An empty stdClass is true