3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Localize { private $from = array( 'language' => 'en', // Language: English 'country' => 'usa', // Country: USA 'currency' => 'dollar', // Currency: dollar $ 'units' => 'is', // Units: International System[meter, kelvin, etc] 'timezone' => '-5' // Timezone: UTC -5 hours [America/New_York] ); private $to = $this->from; }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$this' (T_VARIABLE) in /in/JSm3b on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/JSm3b on line 11
Process exited with code 255.