3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('franz' => 'de leon', 'cheryl' => 'chua'); abstract class E { public function al(array $a) { array_pop($a); return $a; } } var_dump(E::al($a)); var_dump($a);
Output for 7.0.0 - 7.1.0
Deprecated: Non-static method E::al() should not be called statically in /in/4IsCZ on line 14 array(1) { ["franz"]=> string(7) "de leon" } array(2) { ["franz"]=> string(7) "de leon" ["cheryl"]=> string(4) "chua" }
Output for 5.1.0 - 5.6.28
Strict Standards: Non-static method E::al() should not be called statically in /in/4IsCZ on line 14 array(1) { ["franz"]=> string(7) "de leon" } array(2) { ["franz"]=> string(7) "de leon" ["cheryl"]=> string(4) "chua" }
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /in/4IsCZ on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/4IsCZ on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_CLASS in /in/4IsCZ on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/4IsCZ on line 5
Process exited with code 255.