3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = array(); $str_n = array(); $str_d = array(); $str_dc = 0; $str_f = array(); $str_fc = 0; $str[0] = "Shockwave Flash;Shockwave Flash 13.0 r0;NPSWF32_13_0_0_214.dll;undefined(Adobe Flash movie;application/x-shockwave-flash;swf)(FutureSplash movie;application/futuresplash;spl)"; $str_n[0] = mb_strstr($str[0],';',true); $str_dc = mb_strstr($str[0],';'); $str_dc = substr($str_dc,1,mb_strlen($str_dc)); $str_d[0] = mb_strstr($str_dc,';',true); $str_fc = mb_strstr($str_dc,';'); $str_fc = substr($str_fc,1,mb_strlen($str_fc)); $str_f[0] = mb_strstr($str_fc,';',true); //echo $str_n[0]." / "; //echo $str_d[0]." / "; echo $str_f[0]." / "; $str_nv = mb_ereg_replace('[0-9].+', '', $str_n[0]).'|'; $str_dv = mb_ereg_replace('[0-9].+', '', $str_d[0]).'|'; $str_fv = mb_ereg_replace('[0-9].+', '', $str_f[0]); $str_ndf = $str_nv.$str_dv.$str_fv; echo $str_ndf; ?>
based on cecTj
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NPSWF32_13_0_0_214.dll / Shockwave Flash|Shockwave Flash |NPSWF
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function mb_strstr() in /in/Icg8G on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mb_strstr() in /in/Icg8G on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mb_strstr() in /in/Icg8G on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mb_strstr() in /in/Icg8G on line 9