3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fieldString = [ 'codTrans', 'esito', 'importo', 'divisa', 'data', 'orario', 'codAut', ]; var_dump(implode($fieldString, '=%s'));
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.7
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /in/JUmcC:14 Stack trace: #0 /in/JUmcC(14): implode(Array, '=%s') #1 {main} thrown in /in/JUmcC on line 14
Process exited with code 255.
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /in/JUmcC on line 14 string(60) "codTrans=%sesito=%simporto=%sdivisa=%sdata=%sorario=%scodAut"
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.26
string(60) "codTrans=%sesito=%simporto=%sdivisa=%sdata=%sorario=%scodAut"

preferences:
221.98 ms | 402 KiB | 292 Q