3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class NumberToWords { public static $baseNumbers = [ 0 => "zero", 1 => "nje", 2 => "dy", 3 => "tre", 4 => "kater", 5 => "pese", 6 => "gjashte", 7 => "shtate", 8 => "tete", 9 => "nente", 10 => "dhjete", ]; } $a = new NumberToWords; var_dump($a->baseNumbers);
based on 9in6T
Output for 7.0.0 - 7.2.0
Notice: Accessing static property NumberToWords::$baseNumbers as non static in /in/08vfU on line 22 Notice: Undefined property: NumberToWords::$baseNumbers in /in/08vfU on line 22 NULL
Output for 5.4.10 - 5.6.28
Strict Standards: Accessing static property NumberToWords::$baseNumbers as non static in /in/08vfU on line 22 Notice: Undefined property: NumberToWords::$baseNumbers in /in/08vfU on line 22 NULL
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/08vfU on line 7
Process exited with code 255.