3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (object) array('artists'); print '<pre>'; print_r($a); print '----------'; var_dump($a);
Output for 7.2.0
<pre>stdClass Object ( [0] => artists ) ----------object(stdClass)#1 (1) { ["0"]=> string(7) "artists" }
Output for 5.0.0 - 7.1.10
<pre>stdClass Object ( [0] => artists ) ----------object(stdClass)#1 (1) { [0]=> string(7) "artists" }
Output for 4.3.0 - 4.4.9
<pre>stdClass Object ( [0] => artists ) ----------object(stdClass)(1) { [0]=> string(7) "artists" }