3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $toto = ";K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\ShareParis\Soft\Flux\Moniteur\Qual\000D06\ETAT_CM\Recv\[PARM];;;;;;ASCII;"; echo addslashes($toto); echo "\n"; echo str_replace('\\','\\\\',$toto); echo "\n"; echo preg_replace('/\\/','\\\\',$toto);
based on 8udpd
Output for 4.3.11 - 7.2.0
;K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\\ShareParis\\Soft\\Flux\\Moniteur\\Qual\0D06\\ETAT_CM\\Recv\\[PARM];;;;;;ASCII; ;K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\\ShareParis\\Soft\\Flux\\Moniteur\\QualD06\\ETAT_CM\\Recv\\[PARM];;;;;;ASCII; Warning: preg_replace(): No ending delimiter '/' found in /in/oWd8k on line 8
Output for 4.3.0 - 4.3.8, 4.3.10
;K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\\ShareParis\\Soft\\Flux\\Moniteur\\Qual\0D06\\ETAT_CM\\Recv\\[PARM];;;;;;ASCII; ;K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\\ShareParis\\Soft\\Flux\\Moniteur\\QualD06\\ETAT_CM\\Recv\\[PARM];;;;;;ASCII; Warning: No ending delimiter '/' found in /in/oWd8k on line 8
Output for 4.3.9
;K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\\ShareParis\\Soft\\Flux\\Moniteur\\Qual\D06\\ETAT_CM\\Recv\\[PARM];;;;;;ASCII; ;K16;K16;K16;NBPQ1DHS;XFPREXWI;\\Cib.net\\ShareParis\\Soft\\Flux\\Moniteur\\QualD06\\ETAT_CM\\Recv\\[PARM];;;;;;ASCII; Warning: No ending delimiter '/' found in /in/oWd8k on line 8