3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 0; $i = $i++; echo i%2;
based on Zha3V
Output for 7.2.0
Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/AX07X on line 4 Warning: A non-numeric value encountered in /in/AX07X on line 4 0
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant i - assumed 'i' in /in/AX07X on line 4 Warning: A non-numeric value encountered in /in/AX07X on line 4 0
Output for 5.3.21 - 7.0.20
Notice: Use of undefined constant i - assumed 'i' in /in/AX07X on line 4 0