3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class myClass { } $obj = new myClass; $obj->color = function( $flower ){ $arr = ["rose"=>"red", "violet"=>"blue", "grass"=>"green"]; return $arr[$flower]; }; for ($flower = "rose";;){ if ($flower == "rose"){ echo "{$flower}s are ",($obj->color)($flower),"\n"; } else { break; } }
based on c9UL0
Output for 7.0.0 - 7.2.0
roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses are red roses ar
Process exited with code 137.
Output for 5.5.0 - 5.6.28
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/GFWXs on line 16
Process exited with code 255.