3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); $string = 'JavaSCRIPT and pHp are testing test-ground for TEST !'; $censor = ['php' => 2,'javascript' => 2,'test' => 3]; foreach ($censor as $word => $position) { while (($pos = stripos($string, $word)) !== false) { $string = substr_replace($string, '*', $pos + $position - 1, 1); } } echo $string; $end = (microtime(true)); echo '<br />'; echo $end - $start;
Output for 5.4.14, 5.4.19, 5.5.27, 7.1.0
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.3841857910156E-5
Output for 7.0.14
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.7179718017578E-5
Output for 5.4.36, 5.4.40, 5.5.20 - 5.5.21, 7.0.6
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.7166137695312E-5
Output for 5.4.8, 5.4.17, 7.0.4 - 7.0.5
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.2172927856445E-5
Output for 5.4.43, 5.5.10, 7.0.3
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.3126602172852E-5
Output for 7.0.2
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.288818359375E-5
Output for 5.4.11, 5.4.23, 5.4.39, 5.4.41, 5.5.35, 5.6.9, 5.6.14, 7.0.1
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.1934509277344E-5
Output for 5.4.13, 5.5.22, 5.5.28, 7.0.0
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.9073486328125E-5
Output for hhvm-3.12.0
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.1948089599609E-5
Output for hhvm-3.10.0
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.2901763916016E-5
Output for 5.4.0, 5.4.6, 5.4.9, 5.5.31, 5.6.28
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.0994415283203E-5
Output for 5.4.4, 5.4.29, 5.5.2, 5.5.8, 5.6.3, 5.6.19, 5.6.21
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.598762512207E-5
Output for 5.4.25, 5.5.29, 5.6.20
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.8133392333984E-5
Output for 5.4.3, 5.4.20, 5.4.24, 5.4.27, 5.5.5, 5.5.7, 5.5.9, 5.5.14, 5.6.18
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.6941299438477E-5
Output for 5.6.17
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.3855438232422E-5
Output for 5.4.31, 5.5.24, 5.6.12 - 5.6.13, 5.6.16
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.0027160644531E-5
Output for 5.4.12, 5.4.45, 5.5.25, 5.6.2, 5.6.10, 5.6.15
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.0980834960938E-5
Output for 5.4.35, 5.4.37, 5.5.23, 5.6.4, 5.6.7, 5.6.11
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.6927719116211E-5
Output for 5.6.8
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.6212463378906E-5
Output for 5.5.11, 5.6.6
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.7894973754883E-5
Output for 5.4.32, 5.4.38, 5.4.44, 5.5.16, 5.6.5
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.5974044799805E-5
Output for 5.6.1
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.1219253540039E-5
Output for 5.4.34, 5.6.0
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.7881393432617E-5
Output for 5.4.18, 5.4.26, 5.5.3, 5.5.32, 5.5.34
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.0040740966797E-5
Output for 5.4.16, 5.5.12, 5.5.33
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.8848648071289E-5
Output for 5.4.30, 5.5.30
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.4080276489258E-5
Output for 5.5.26
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.8835067749023E-5
Output for 5.4.21, 5.5.19
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.5033950805664E-5
Output for 5.4.42, 5.5.18
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.8119812011719E-5
Output for 5.5.15
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />1.978874206543E-5
Output for 5.5.13
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.4093856811523E-5
Output for 5.5.6
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />4.2915344238281E-5
Output for 5.4.2, 5.4.5, 5.4.10, 5.4.28, 5.5.4
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.9087066650391E-5
Output for 5.5.1
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.6226043701172E-5
Output for 5.5.0
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.4795532226562E-5
Output for 5.4.22
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />3.9100646972656E-5
Output for 5.4.15
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />5.5074691772461E-5
Output for 5.4.7
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />4.1007995605469E-5
Output for 5.4.1
J*vaSCRIPT and p*p are te*ting te*t-ground for TE*T !<br />2.9802322387695E-5
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/NVp6S on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/NVp6S on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/NVp6S on line 5
Process exited with code 255.