3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class cp2 { protected $a=4; protected $m=5; prote public function tiga($a,$m) { echo "set alas dan set miring".$this->tiga(); } } $segitiga = new cp2 (); echo $segitiga->tiga(4,5); echo PHP_EOL;
based on pS2Gs
Output for 7.1.0 - 7.3.0rc3
Parse error: syntax error, unexpected 'prote' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /in/7Jljq on line 6
Process exited with code 255.
Output for 5.6.38 - 7.0.28
Parse error: syntax error, unexpected 'prote' (T_STRING), expecting function (T_FUNCTION) in /in/7Jljq on line 6
Process exited with code 255.