3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = range(0, 99); $start = microtime(1); $result = []; for ($i = 0; $i < 100; $i++) if (preg_match("#$i#", $array[$i])) $result[] = $array[$i]; print "for \$i took ".($start - microtime(1))." seconds\n"; $start = microtime(1); $result = []; for ($i = 0; $i < 100; $i++) if (preg_match("#\d#", $array[$i])) $result[] = $array[$i]; print "for \\d took ".($start - microtime(1))." seconds\n"; $start = microtime(1); $result = []; foreach ($array as $entry) if (preg_match("#\d#", $entry)) $result[] = $entry; print "foreach \\d took ".($start - microtime(1))." seconds\n"; $start = microtime(1); $result = []; $result = preg_grep("#\d#", $array); print "preg_grep \\d took ".($start - microtime(1))." seconds\n";
Output for 7.1.0
for $i took -0.0010459423065186 seconds for \d took -4.1961669921875E-5 seconds foreach \d took -2.2172927856445E-5 seconds preg_grep \d took -9.7751617431641E-6 seconds
Output for 7.0.14
for $i took -0.001046895980835 seconds for \d took -4.1961669921875E-5 seconds foreach \d took -2.2172927856445E-5 seconds preg_grep \d took -1.0967254638672E-5 seconds
Output for 7.0.7
for $i took -0.00057411193847656 seconds for \d took -3.1948089599609E-5 seconds foreach \d took -1.5020370483398E-5 seconds preg_grep \d took -6.9141387939453E-6 seconds
Output for 7.0.6
for $i took -0.00081181526184082 seconds for \d took -4.887580871582E-5 seconds foreach \d took -2.598762512207E-5 seconds preg_grep \d took -1.0967254638672E-5 seconds
Output for 7.0.5
for $i took -0.00079202651977539 seconds for \d took -4.4107437133789E-5 seconds foreach \d took -3.4093856811523E-5 seconds preg_grep \d took -1.0013580322266E-5 seconds
Output for 7.0.4
for $i took -0.00064706802368164 seconds for \d took -5.5074691772461E-5 seconds foreach \d took -2.6941299438477E-5 seconds preg_grep \d took -6.9141387939453E-6 seconds
Output for 7.0.3
for $i took -0.00081396102905273 seconds for \d took -6.6041946411133E-5 seconds foreach \d took -2.0980834960938E-5 seconds preg_grep \d took -1.0013580322266E-5 seconds
Output for 7.0.2
for $i took -0.00081610679626465 seconds for \d took -4.2915344238281E-5 seconds foreach \d took -2.288818359375E-5 seconds preg_grep \d took -1.2874603271484E-5 seconds
Output for 7.0.1
for $i took -0.00079798698425293 seconds for \d took -4.1961669921875E-5 seconds foreach \d took -2.288818359375E-5 seconds preg_grep \d took -1.0967254638672E-5 seconds
Output for 7.0.0
for $i took -0.00088906288146973 seconds for \d took -5.9127807617188E-5 seconds foreach \d took -2.4795532226562E-5 seconds preg_grep \d took -1.1920928955078E-5 seconds
Output for 5.6.22
for $i took -0.00020003318786621 seconds for \d took -6.7949295043945E-5 seconds foreach \d took -6.413459777832E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.6.21
for $i took -0.00016903877258301 seconds for \d took -7.7962875366211E-5 seconds foreach \d took -6.0081481933594E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.6.20
for $i took -0.00016593933105469 seconds for \d took -6.9141387939453E-5 seconds foreach \d took -6.0081481933594E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.6.19
for $i took -0.00012803077697754 seconds for \d took -5.0067901611328E-5 seconds foreach \d took -4.1007995605469E-5 seconds preg_grep \d took -1.6927719116211E-5 seconds
Output for 5.6.18
for $i took -0.00017499923706055 seconds for \d took -8.8930130004883E-5 seconds foreach \d took -7.0095062255859E-5 seconds preg_grep \d took -3.0994415283203E-5 seconds
Output for 5.6.17
for $i took -0.00016617774963379 seconds for \d took -6.8902969360352E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.6.16
for $i took -0.00015902519226074 seconds for \d took -6.6041946411133E-5 seconds foreach \d took -5.6982040405273E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.6.15
for $i took -0.00017619132995605 seconds for \d took -7.2956085205078E-5 seconds foreach \d took -8.082389831543E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.6.14
for $i took -0.00017285346984863 seconds for \d took -7.2002410888672E-5 seconds foreach \d took -6.3180923461914E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.6.13
for $i took -0.00017499923706055 seconds for \d took -8.2015991210938E-5 seconds foreach \d took -6.9856643676758E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.6.12
for $i took -0.00013399124145508 seconds for \d took -5.3882598876953E-5 seconds foreach \d took -4.6968460083008E-5 seconds preg_grep \d took -1.8835067749023E-5 seconds
Output for 5.6.11
for $i took -0.00018310546875 seconds for \d took -8.6069107055664E-5 seconds foreach \d took -6.7949295043945E-5 seconds preg_grep \d took -3.9100646972656E-5 seconds
Output for 5.6.10
for $i took -0.00017404556274414 seconds for \d took -7.2002410888672E-5 seconds foreach \d took -6.3180923461914E-5 seconds preg_grep \d took -2.4795532226562E-5 seconds
Output for 5.6.9
for $i took -0.00017619132995605 seconds for \d took -6.5088272094727E-5 seconds foreach \d took -5.6982040405273E-5 seconds preg_grep \d took -2.1934509277344E-5 seconds
Output for 5.6.8
for $i took -0.00017404556274414 seconds for \d took -0.00011301040649414 seconds foreach \d took -7.9870223999023E-5 seconds preg_grep \d took -4.7922134399414E-5 seconds
Output for 5.6.7
for $i took -0.00015902519226074 seconds for \d took -6.6041946411133E-5 seconds foreach \d took -5.8174133300781E-5 seconds preg_grep \d took -2.2172927856445E-5 seconds
Output for 5.6.6
for $i took -0.00015902519226074 seconds for \d took -6.5088272094727E-5 seconds foreach \d took -5.9843063354492E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.6.5
for $i took -0.00017094612121582 seconds for \d took -6.7949295043945E-5 seconds foreach \d took -5.9843063354492E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.6.4
for $i took -0.0001671314239502 seconds for \d took -6.7949295043945E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.6.3
for $i took -0.00016403198242188 seconds for \d took -6.0796737670898E-5 seconds foreach \d took -5.2928924560547E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.6.2
for $i took -0.00015497207641602 seconds for \d took -6.4849853515625E-5 seconds foreach \d took -5.6028366088867E-5 seconds preg_grep \d took -2.1934509277344E-5 seconds
Output for 5.6.1
for $i took -0.00015807151794434 seconds for \d took -6.4849853515625E-5 seconds foreach \d took -5.6982040405273E-5 seconds preg_grep \d took -2.1934509277344E-5 seconds
Output for 5.6.0
for $i took -0.00017094612121582 seconds for \d took -7.2956085205078E-5 seconds foreach \d took -6.1988830566406E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.5.36
for $i took -0.00018787384033203 seconds for \d took -9.5129013061523E-5 seconds foreach \d took -7.319450378418E-5 seconds preg_grep \d took -3.814697265625E-5 seconds
Output for 5.5.35
for $i took -0.00013113021850586 seconds for \d took -5.1975250244141E-5 seconds foreach \d took -4.6968460083008E-5 seconds preg_grep \d took -1.8119812011719E-5 seconds
Output for 5.5.34
for $i took -0.00011610984802246 seconds for \d took -5.1021575927734E-5 seconds foreach \d took -4.1007995605469E-5 seconds preg_grep \d took -1.5974044799805E-5 seconds
Output for 5.5.33
for $i took -0.00020790100097656 seconds for \d took -7.1048736572266E-5 seconds foreach \d took -6.1988830566406E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.5.32
for $i took -0.00015401840209961 seconds for \d took -8.4161758422852E-5 seconds foreach \d took -6.1988830566406E-5 seconds preg_grep \d took -2.7179718017578E-5 seconds
Output for 5.5.31
for $i took -0.00032210350036621 seconds for \d took -0.00014877319335938 seconds foreach \d took -0.00013494491577148 seconds preg_grep \d took -5.4121017456055E-5 seconds
Output for 5.5.30
for $i took -0.00017690658569336 seconds for \d took -7.2956085205078E-5 seconds foreach \d took -6.5088272094727E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.5.29
for $i took -0.00017499923706055 seconds for \d took -7.319450378418E-5 seconds foreach \d took -6.4849853515625E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.5.28
for $i took -0.00017499923706055 seconds for \d took -7.4148178100586E-5 seconds foreach \d took -6.4849853515625E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.5.27
for $i took -0.00017285346984863 seconds for \d took -8.2969665527344E-5 seconds foreach \d took -6.9141387939453E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.5.26
for $i took -0.00016689300537109 seconds for \d took -7.0095062255859E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.5.25
for $i took -0.00018501281738281 seconds for \d took -7.8201293945312E-5 seconds foreach \d took -6.6995620727539E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.5.24
for $i took -0.00011420249938965 seconds for \d took -5.5074691772461E-5 seconds foreach \d took -4.1961669921875E-5 seconds preg_grep \d took -2.2172927856445E-5 seconds
Output for 5.5.23
for $i took -0.00020098686218262 seconds for \d took -6.9856643676758E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.5.22
for $i took -0.00019288063049316 seconds for \d took -7.7962875366211E-5 seconds foreach \d took -6.6995620727539E-5 seconds preg_grep \d took -2.6941299438477E-5 seconds
Output for 5.5.21
for $i took -0.00016093254089355 seconds for \d took -6.2942504882812E-5 seconds foreach \d took -5.4121017456055E-5 seconds preg_grep \d took -2.2172927856445E-5 seconds
Output for 5.5.20
for $i took -0.00014901161193848 seconds for \d took -6.2942504882812E-5 seconds foreach \d took -5.3882598876953E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.5.19
for $i took -0.00015401840209961 seconds for \d took -6.3896179199219E-5 seconds foreach \d took -5.5074691772461E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.5.18
for $i took -0.00016093254089355 seconds for \d took -6.3896179199219E-5 seconds foreach \d took -5.5074691772461E-5 seconds preg_grep \d took -2.1934509277344E-5 seconds
Output for 5.5.16
for $i took -0.00022411346435547 seconds for \d took -8.392333984375E-5 seconds foreach \d took -7.4148178100586E-5 seconds preg_grep \d took -2.8848648071289E-5 seconds
Output for 5.5.15
for $i took -0.00014281272888184 seconds for \d took -6.8902969360352E-5 seconds foreach \d took -5.6028366088867E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.5.14
for $i took -0.00016593933105469 seconds for \d took -7.1048736572266E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.3841857910156E-5 seconds
Output for 5.5.13
for $i took -0.00011301040649414 seconds for \d took -5.8174133300781E-5 seconds foreach \d took -4.4107437133789E-5 seconds preg_grep \d took -3.0040740966797E-5 seconds
Output for 5.5.12
for $i took -0.00014805793762207 seconds for \d took -6.103515625E-5 seconds foreach \d took -5.3882598876953E-5 seconds preg_grep \d took -2.0027160644531E-5 seconds
Output for 5.5.11
for $i took -0.00014495849609375 seconds for \d took -8.5115432739258E-5 seconds foreach \d took -4.9114227294922E-5 seconds preg_grep \d took -1.9073486328125E-5 seconds
Output for 5.5.10
for $i took -0.00018095970153809 seconds for \d took -7.5101852416992E-5 seconds foreach \d took -6.4849853515625E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.5.9
for $i took -0.00010895729064941 seconds for \d took -4.6014785766602E-5 seconds foreach \d took -4.1007995605469E-5 seconds preg_grep \d took -1.5974044799805E-5 seconds
Output for 5.5.8
for $i took -0.00015091896057129 seconds for \d took -8.2969665527344E-5 seconds foreach \d took -6.3896179199219E-5 seconds preg_grep \d took -2.7894973754883E-5 seconds
Output for 5.5.7
for $i took -0.00016593933105469 seconds for \d took -8.7976455688477E-5 seconds foreach \d took -6.9141387939453E-5 seconds preg_grep \d took -3.0994415283203E-5 seconds
Output for 5.5.6
for $i took -0.00018000602722168 seconds for \d took -7.1048736572266E-5 seconds foreach \d took -5.793571472168E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.5.5
for $i took -0.00016283988952637 seconds for \d took -6.8187713623047E-5 seconds foreach \d took -6.0796737670898E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.5.4
for $i took -0.0001680850982666 seconds for \d took -7.2002410888672E-5 seconds foreach \d took -6.413459777832E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.5.3
for $i took -0.00018501281738281 seconds for \d took -9.9897384643555E-5 seconds foreach \d took -7.8201293945312E-5 seconds preg_grep \d took -3.504753112793E-5 seconds
Output for 5.5.2
for $i took -0.00015997886657715 seconds for \d took -6.9141387939453E-5 seconds foreach \d took -6.0796737670898E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.5.1
for $i took -0.000244140625 seconds for \d took -0.00011610984802246 seconds foreach \d took -6.5088272094727E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.5.0
for $i took -0.00016999244689941 seconds for \d took -7.2002410888672E-5 seconds foreach \d took -6.6041946411133E-5 seconds preg_grep \d took -2.3841857910156E-5 seconds
Output for 5.4.45
for $i took -0.00017094612121582 seconds for \d took -7.5817108154297E-5 seconds foreach \d took -6.1988830566406E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.4.44
for $i took -0.00016188621520996 seconds for \d took -7.0810317993164E-5 seconds foreach \d took -6.0081481933594E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.4.43
for $i took -0.00021004676818848 seconds for \d took -7.2956085205078E-5 seconds foreach \d took -6.3180923461914E-5 seconds preg_grep \d took -3.4093856811523E-5 seconds
Output for 5.4.42
for $i took -0.00017809867858887 seconds for \d took -9.1075897216797E-5 seconds foreach \d took -7.1048736572266E-5 seconds preg_grep \d took -3.0994415283203E-5 seconds
Output for 5.4.41
for $i took -0.00016188621520996 seconds for \d took -8.1062316894531E-5 seconds foreach \d took -6.5088272094727E-5 seconds preg_grep \d took -2.6941299438477E-5 seconds
Output for 5.4.40
for $i took -0.00017118453979492 seconds for \d took -7.6055526733398E-5 seconds foreach \d took -6.5088272094727E-5 seconds preg_grep \d took -2.3841857910156E-5 seconds
Output for 5.4.39
for $i took -0.00020003318786621 seconds for \d took -6.7949295043945E-5 seconds foreach \d took -5.6028366088867E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.4.38
for $i took -0.00014090538024902 seconds for \d took -6.413459777832E-5 seconds foreach \d took -5.3882598876953E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.4.37
for $i took -0.00016403198242188 seconds for \d took -6.9856643676758E-5 seconds foreach \d took -6.5803527832031E-5 seconds preg_grep \d took -3.3855438232422E-5 seconds
Output for 5.4.36
for $i took -0.00014901161193848 seconds for \d took -7.7009201049805E-5 seconds foreach \d took -6.413459777832E-5 seconds preg_grep \d took -2.2172927856445E-5 seconds
Output for 5.4.35
for $i took -0.00017714500427246 seconds for \d took -8.082389831543E-5 seconds foreach \d took -6.8902969360352E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.4.34
for $i took -0.00017714500427246 seconds for \d took -9.608268737793E-5 seconds foreach \d took -7.7962875366211E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.4.32
for $i took -0.00014114379882812 seconds for \d took -6.3180923461914E-5 seconds foreach \d took -5.4121017456055E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.4.31
for $i took -0.00016188621520996 seconds for \d took -7.319450378418E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.4.30
for $i took -0.00016903877258301 seconds for \d took -7.4148178100586E-5 seconds foreach \d took -7.0810317993164E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.4.29
for $i took -0.00015091896057129 seconds for \d took -8.5115432739258E-5 seconds foreach \d took -5.793571472168E-5 seconds preg_grep \d took -2.1934509277344E-5 seconds
Output for 5.4.28
for $i took -0.00010299682617188 seconds for \d took -4.4822692871094E-5 seconds foreach \d took -4.0054321289062E-5 seconds preg_grep \d took -1.5020370483398E-5 seconds
Output for 5.4.27
for $i took -0.00010514259338379 seconds for \d took -5.2928924560547E-5 seconds foreach \d took -4.0054321289062E-5 seconds preg_grep \d took -2.0027160644531E-5 seconds
Output for 5.4.26
for $i took -0.00010991096496582 seconds for \d took -6.103515625E-5 seconds foreach \d took -4.5061111450195E-5 seconds preg_grep \d took -1.8835067749023E-5 seconds
Output for 5.4.25
for $i took -0.0001068115234375 seconds for \d took -4.6968460083008E-5 seconds foreach \d took -4.1007995605469E-5 seconds preg_grep \d took -1.5020370483398E-5 seconds
Output for 5.4.24
for $i took -0.00016880035400391 seconds for \d took -7.4148178100586E-5 seconds foreach \d took -6.2942504882812E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.4.23
for $i took -0.00017309188842773 seconds for \d took -8.2969665527344E-5 seconds foreach \d took -7.3909759521484E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.4.22
for $i took -0.00016999244689941 seconds for \d took -7.2956085205078E-5 seconds foreach \d took -7.4863433837891E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.4.21
for $i took -0.00015497207641602 seconds for \d took -6.8902969360352E-5 seconds foreach \d took -5.9127807617188E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.4.20
for $i took -0.00018906593322754 seconds for \d took -8.082389831543E-5 seconds foreach \d took -6.9856643676758E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.4.19
for $i took -0.00016903877258301 seconds for \d took -7.5101852416992E-5 seconds foreach \d took -6.9141387939453E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.4.18
for $i took -0.00014805793762207 seconds for \d took -6.6995620727539E-5 seconds foreach \d took -7.7009201049805E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.4.17
for $i took -0.00016212463378906 seconds for \d took -8.0108642578125E-5 seconds foreach \d took -7.0095062255859E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.4.16
for $i took -0.00017714500427246 seconds for \d took -8.6784362792969E-5 seconds foreach \d took -6.6041946411133E-5 seconds preg_grep \d took -2.9802322387695E-5 seconds
Output for 5.4.15
for $i took -0.00015592575073242 seconds for \d took -6.6995620727539E-5 seconds foreach \d took -5.793571472168E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 5.4.14
for $i took -0.00017189979553223 seconds for \d took -9.3221664428711E-5 seconds foreach \d took -7.2002410888672E-5 seconds preg_grep \d took -3.0994415283203E-5 seconds
Output for 5.4.13
for $i took -0.00012803077697754 seconds for \d took -7.3909759521484E-5 seconds foreach \d took -5.2213668823242E-5 seconds preg_grep \d took -2.3126602172852E-5 seconds
Output for 5.4.12
for $i took -0.00024199485778809 seconds for \d took -0.00010800361633301 seconds foreach \d took -9.7990036010742E-5 seconds preg_grep \d took -2.7894973754883E-5 seconds
Output for 5.4.11
for $i took -0.00013494491577148 seconds for \d took -6.0081481933594E-5 seconds foreach \d took -5.1975250244141E-5 seconds preg_grep \d took -2.0027160644531E-5 seconds
Output for 5.4.10
for $i took -0.00023102760314941 seconds for \d took -7.6055526733398E-5 seconds foreach \d took -6.5803527832031E-5 seconds preg_grep \d took -2.5033950805664E-5 seconds
Output for 5.4.9
for $i took -0.00011301040649414 seconds for \d took -4.6968460083008E-5 seconds foreach \d took -4.1007995605469E-5 seconds preg_grep \d took -1.5974044799805E-5 seconds
Output for 5.4.8
for $i took -0.00017189979553223 seconds for \d took -7.4863433837891E-5 seconds foreach \d took -6.413459777832E-5 seconds preg_grep \d took -2.4795532226562E-5 seconds
Output for 5.4.7
for $i took -0.00020003318786621 seconds for \d took -9.1791152954102E-5 seconds foreach \d took -6.7949295043945E-5 seconds preg_grep \d took -2.6941299438477E-5 seconds
Output for 5.4.6
for $i took -0.00018119812011719 seconds for \d took -7.8201293945312E-5 seconds foreach \d took -6.9141387939453E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.4.5
for $i took -0.00022315979003906 seconds for \d took -7.8201293945312E-5 seconds foreach \d took -6.7949295043945E-5 seconds preg_grep \d took -2.598762512207E-5 seconds
Output for 5.4.4
for $i took -0.00016093254089355 seconds for \d took -7.0095062255859E-5 seconds foreach \d took -6.103515625E-5 seconds preg_grep \d took -2.4080276489258E-5 seconds
Output for 5.4.3
for $i took -0.00015091896057129 seconds for \d took -6.2942504882812E-5 seconds foreach \d took -5.4836273193359E-5 seconds preg_grep \d took -2.1934509277344E-5 seconds
Output for 5.4.2
for $i took -0.00016307830810547 seconds for \d took -8.9883804321289E-5 seconds foreach \d took -6.6995620727539E-5 seconds preg_grep \d took -3.4093856811523E-5 seconds
Output for 5.4.1
for $i took -0.00017786026000977 seconds for \d took -6.103515625E-5 seconds foreach \d took -5.3167343139648E-5 seconds preg_grep \d took -2.0980834960938E-5 seconds
Output for 5.4.0
for $i took -0.00015497207641602 seconds for \d took -6.7949295043945E-5 seconds foreach \d took -7.0095062255859E-5 seconds preg_grep \d took -2.288818359375E-5 seconds
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/lYuvo on line 7
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/lYuvo on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/lYuvo on line 7
Process exited with code 255.