3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class myCar { public $color = "silver"; public $make = "Mazda"; public $model = "protege5"; } $car = new myCar(); { echo "I drive a: ".$car -> color." ".$car -> make." " .$car ->model." " ; } ?>
based on jBGEg
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
I drive a: silver Mazda protege5