3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array('req'=>false, 'lessthan'=>10); $arr2 = array('parent'=> array('parent_name'=>array('val1'), 'rules'=>array('req'=>false))); $arr3 = array('a', 'b', 'c'); $arrE = array(); $arrE = implode(',', $arr3); var_dump(implode(',', $arrE));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/krUTO:10 Stack trace: #0 /in/krUTO(10): implode(',', 'a,b,c') #1 {main} thrown in /in/krUTO on line 10
Process exited with code 255.
Output for 7.1.25 - 7.1.30, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: implode(): Invalid arguments passed in /in/krUTO on line 10 NULL

preferences:
156.79 ms | 402 KiB | 169 Q