3v4l.org

run code in 300+ PHP versions simultaneously
<?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 = self::$from; }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$from' (T_VARIABLE), expecting identifier (T_STRING) in /in/hKdQG on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in /in/hKdQG on line 11
Process exited with code 255.

preferences:
193.13 ms | 1395 KiB | 61 Q