3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $width = $height = 1024; $stepSize = 10; for ($x=0; $x < width; $x+=$stepSize) { for ($y=0; $y < height; $y+=$stepSize) { echo "Checking pixel at ($x, $y)"; } }
Output for 7.2.0 - 7.3.0alpha1
Warning: Use of undefined constant width - assumed 'width' (this will throw an Error in a future version of PHP) in /in/rKgAj on line 5
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant width - assumed 'width' in /in/rKgAj on line 5