3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $month = 4; $i = 0; do{ $month = ($month % 12); var_dump(year); $i++; if($i > 25) break; }while(true);
Output for 7.2.0
Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year" Warning: Use of undefined constant year - assumed 'year' (this will throw an Error in a future version of PHP) in /in/rqCEB on line 9 string(4) "year"
Output for 5.3.20 - 7.1.10
Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year" Notice: Use of undefined constant year - assumed 'year' in /in/rqCEB on line 9 string(4) "year"