3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface bbqesq { function printSoda(); } class bbq implements bbqesq { var $soda; function printSoda(){ echo $this->soda; } } $k = new bbq; $k->soda = 8675309; $k->printSoda();
based on QdQEC
Output for 5.3.20 - 7.2.0
8675309