3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = ["2243124114411|02-02|02003050020|2|1|2015/12/05 09:37:09|17|page_B3_100020.html","2243124114411|03-01|02003050020|2|1|2015/12/05 09:37:09|18|page_B3_100030.html","2243124114411|01-02|02003050020|4|2|2015/12/05 09:37:09|19|page_B3_100040.html","2243124114411|02-01|02003050020|3|2|2015/12/05 09:37:09|11|page_B3_100050.html","2243124114411|08-01|02003050111|1|3|2015/12/05 09:37:09|6|page_B3_100060.html","2243124114411|04-01|02003050020|2|4|2015/12/05 09:37:09|7|page_B3_100070.html","2243124114411|02-03|02003050020|4|4|2015/12/05 09:37:09|9|page_B3_100080.html","2243124114411|02-04|02003050020|1|3|2015/12/05 09:37:09|8|page_B3_100090.html","2243124114411|03-02|02003050020|1|4|2015/12/05 09:37:09|8|page_B3_100100.html","2243124114411|05-01|02003050111|4|4|2015/12/05 09:37:09|10|page_B3_100110.html","2243124114411|06-01|02003050111|4|3|2015/12/05 09:37:09|8|page_B3_100120.html","2243124114411|01-01|02003050020|1|3|2015/12/05 09:37:09|11|page_B3_100130.html","2243124114411|04-01|02003050111|1|4|2015/12/05 09:37:09|9|page_B3_100140.html"]; echo "\n\nRaw:\n" . $var1; echo "\nString: \n" . explode('","', $var1) ;
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.4, 8.3.6
Warning: Array to string conversion in /in/Hmttp on line 9 Raw: Array Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /in/Hmttp:11 Stack trace: #0 /in/Hmttp(11): explode('","', Array) #1 {main} thrown in /in/Hmttp on line 11
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Array to string conversion in /in/Hmttp on line 9 Raw: Array Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /in/Hmttp:11 Stack trace: #0 /in/Hmttp(11): explode('","', Array) #1 {main} thrown in /in/Hmttp on line 11
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.31, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Array to string conversion in /in/Hmttp on line 9 Raw: Array Warning: explode() expects parameter 2 to be string, array given in /in/Hmttp on line 11 String:
Output for 7.3.32 - 7.3.33
Raw: Array Warning: explode() expects parameter 2 to be string, array given in /in/Hmttp on line 11 String:

preferences:
217.16 ms | 401 KiB | 291 Q