3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = "asdfaksjdhflkajsdhflkajshdflkja sldk jahlk sdfhal kjdsh lfkajs dhflkja shdlk askldj hafl ksjdhfl kajsdh flkasd hf"; $count = 0; for ($i=50; $i>0;$i--) { if ($x[i] == " ") { $count = $i; break; } } echo substr($x,$count);
based on pMlXt
Output for 5.4.0 - 7.1.0
Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Warning: Illegal string offset 'i' in /in/mXUgo on line 7 asdfaksjdhflkajsdhflkajshdflkja sldk jahlk sdfhal kjdsh lfkajs dhflkja shdlk askldj hafl ksjdhfl kajsdh flkasd hf
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 Notice: Use of undefined constant i - assumed 'i' in /in/mXUgo on line 7 asdfaksjdhflkajsdhflkajshdflkja sldk jahlk sdfhal kjdsh lfkajs dhflkja shdlk askldj hafl ksjdhfl kajsdh flkasd hf