3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 0; $x = 0; $y = 1; echo $x."<br />"; echo $y."<br />"; while($count < 10) { $z = $x + $y; echo $z."<br />"; $x = $y; $y = $z; $count ++; }
Output for 4.3.0 - 7.1.0
0<br />1<br />1<br />2<br />3<br />5<br />8<br />13<br />21<br />34<br />55<br />89<br />