3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Performance { private static $measurements = []; public static function createMeasurement() { // ... } } class yoMama extends Performance{ public static function getThatTestShit(){ return self::$measurements; } } print_r( yoMama );
based on JKhgY
Output for 7.2.0
Warning: Use of undefined constant yoMama - assumed 'yoMama' (this will throw an Error in a future version of PHP) in /in/lg10O on line 20 yoMama
Output for 5.4.12 - 7.1.10
Notice: Use of undefined constant yoMama - assumed 'yoMama' in /in/lg10O on line 20 yoMama
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/lg10O on line 5
Process exited with code 255.