3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class thing { private static $dodad = array(1, 2); function t1() { $val1 = self::$dodad[0]; $val2 = self::$dodad[1]; } function t2() { $dodad = self::$dodad; $val1 = $dodad[0]; $val2 = $dodad[1]; } }
based on gGTga
Output for 5.5.0 - 7.3.0beta1