3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; };
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught ValueError: explode(): Argument #1 ($separator) cannot be empty in /in/K96m1:4 Stack trace: #0 /in/K96m1(4): explode('', 'a,b,c,d,e,f') #1 {main} thrown in /in/K96m1 on line 4
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: explode(): Empty delimiter in /in/K96m1 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/K96m1 on line 8 Notice: Trying to access array offset on value of type bool in /in/K96m1 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/K96m1 on line 8 Notice: Trying to access array offset on value of type bool in /in/K96m1 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/K96m1 on line 8 Notice: Trying to access array offset on value of type bool in /in/K96m1 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/K96m1 on line 8 Notice: Trying to access array offset on value of type bool in /in/K96m1 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/K96m1 on line 8 Notice: Trying to access array offset on value of type bool in /in/K96m1 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/K96m1 on line 8 Notice: Trying to access array offset on value of type bool in /in/K96m1 on line 8 huruf ke,6 : br
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Warning: explode(): Empty delimiter in /in/K96m1 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/K96m1 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/K96m1 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/K96m1 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/K96m1 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/K96m1 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/K96m1 on line 8 huruf ke,6 : br
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Warning: explode(): Empty delimiter in /in/K96m1 on line 4 data asli,a,b,c,d,e,f Notice: Use of undefined constant i - assumed 'i' in /in/K96m1 on line 8 huruf ke,1 : br Notice: Use of undefined constant i - assumed 'i' in /in/K96m1 on line 8 huruf ke,2 : br Notice: Use of undefined constant i - assumed 'i' in /in/K96m1 on line 8 huruf ke,3 : br Notice: Use of undefined constant i - assumed 'i' in /in/K96m1 on line 8 huruf ke,4 : br Notice: Use of undefined constant i - assumed 'i' in /in/K96m1 on line 8 huruf ke,5 : br Notice: Use of undefined constant i - assumed 'i' in /in/K96m1 on line 8 huruf ke,6 : br

preferences:
566.66 ms | 403 KiB | 215 Q