3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* class helloWorld { const ONE = 1; public $array = array( self::ONE => 'VALUE FIRST', 'VALUE SECOND', 'VALUE THIRD', ); } $hello = new helloWorld(); */ $hello = array( 'ola', 'ole', ); $hello['ds'] = 'hugo'; print_r($hello);
based on WHlKv
Output for 4.3.0 - 7.1.0
Array ( [0] => ola [1] => ole [ds] => hugo )