3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cp2_2018_ganjil { protected $alas; protected $tinggi; public function set ($a,$b) { $this->alas=$alas; $this->miring=$tinggi; echo $this->alas."".$this->miring; } } class subcp2_2018_ganjil extends cp2_2018_ganjil { protected $tinggi; protected function FunctionName($value=") { } }
Output for 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /in/JBWeK on line 19
Process exited with code 255.
Output for 5.6.38
Parse error: syntax error, unexpected '"' in /in/JBWeK on line 15
Process exited with code 255.

preferences:
180.82 ms | 1394 KiB | 44 Q