3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 0; $nxt = 0; $limit = 10; for($i = 0; $i<$limit; $i++){ echo $a = $a?$a:1; $nxt = $nxt+$a; echo ", "; }
based on 22DMA
Output for 5.6.0 - 7.3.0alpha1
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,