3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data="a,b,c,d,e,f"; $run= explode("",$data); echo "data asli,$data"; for ($i=1; $i<=6; $i++){ echo "huruf ke,$i : ".$run[i]."<br>"; };
based on K96m1
Output for 7.2.0 - 7.2.12
Warning: explode(): Empty delimiter in /in/CgDCT on line 4 data asli,a,b,c,d,e,f Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/CgDCT on line 8 huruf ke,1 : <br> Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/CgDCT on line 8 huruf ke,2 : <br> Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/CgDCT on line 8 huruf ke,3 : <br> Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/CgDCT on line 8 huruf ke,4 : <br> Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/CgDCT on line 8 huruf ke,5 : <br> Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/CgDCT on line 8 huruf ke,6 : <br>
Output for 5.3.21 - 5.6.38, 7.0.0 - 7.1.24
Warning: explode(): Empty delimiter in /in/CgDCT on line 4 data asli,a,b,c,d,e,f Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,1 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,2 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,3 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,4 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,5 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,6 : <br>
Output for hhvm-3.22.0
Warning: Invalid argument: delimiter: (empty) in /in/CgDCT on line -1 data asli,a,b,c,d,e,f Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line -1 huruf ke,1 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line -1 huruf ke,2 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line -1 huruf ke,3 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line -1 huruf ke,4 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line -1 huruf ke,5 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line -1 huruf ke,6 : <br>
Output for hhvm-3.10.1 - 3.21.3
Warning: Invalid argument: delimiter: (empty) in /in/CgDCT on line 4 data asli,a,b,c,d,e,f Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,1 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,2 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,3 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,4 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,5 : <br> Notice: Use of undefined constant i - assumed 'i' in /in/CgDCT on line 8 huruf ke,6 : <br>