3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $apples = 10; for ($i = 0; $i < 10; $i++) { echo 'I have ' . $apples-- . " apples. I just ate one.\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
I have 10 apples. I just ate one. I have 9 apples. I just ate one. I have 8 apples. I just ate one. I have 7 apples. I just ate one. I have 6 apples. I just ate one. I have 5 apples. I just ate one. I have 4 apples. I just ate one. I have 3 apples. I just ate one. I have 2 apples. I just ate one. I have 1 apples. I just ate one.
Output for hhvm-3.10.0

Process exited with code 153.