3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $shortstring='hello'; $longstring='long'; for($run=0;$run<1000;$run++) $longstring.='dsfsda'.rand(1000,2000); $time=microtime(true); for($run=0;$run<1000;$run++) $temp=strlen($shortstring); $time=microtime(true)-$time; echo "strlen on short string took $time seconds\n"; $time=microtime(true); for($run=0;$run<1000;$run++) $temp2=strlen($longstring); $time=microtime(true)-$time; echo "strlen on long string took $time seconds\n";
Output for 7.1.0
strlen on short string took 1.3113021850586E-5 seconds strlen on long string took 1.215934753418E-5 seconds
Output for 7.0.14
strlen on short string took 2.3841857910156E-5 seconds strlen on long string took 2.3841857910156E-5 seconds
Output for 7.0.7
strlen on short string took 1.4066696166992E-5 seconds strlen on long string took 1.2874603271484E-5 seconds
Output for 7.0.6
strlen on short string took 2.6941299438477E-5 seconds strlen on long string took 2.6941299438477E-5 seconds
Output for 7.0.5
strlen on short string took 1.2874603271484E-5 seconds strlen on long string took 2.5033950805664E-5 seconds
Output for 7.0.1, 7.0.4
strlen on short string took 2.0980834960938E-5 seconds strlen on long string took 2.0980834960938E-5 seconds
Output for 7.0.3
strlen on short string took 1.8835067749023E-5 seconds strlen on long string took 1.7881393432617E-5 seconds
Output for 7.0.2
strlen on short string took 1.9073486328125E-5 seconds strlen on long string took 1.8835067749023E-5 seconds
Output for 7.0.0
strlen on short string took 2.0980834960938E-5 seconds strlen on long string took 2.0027160644531E-5 seconds
Output for hhvm-3.12.0
strlen on short string took 7.7009201049805E-5 seconds strlen on long string took 8.9883804321289E-5 seconds
Output for hhvm-3.10.0
strlen on short string took 0.00010180473327637 seconds strlen on long string took 0.00010395050048828 seconds
Output for 5.6.28
strlen on short string took 0.00016283988952637 seconds strlen on long string took 0.00016283988952637 seconds
Output for 5.6.21
strlen on short string took 0.00012302398681641 seconds strlen on long string took 0.0001218318939209 seconds
Output for 5.6.20
strlen on short string took 0.00012493133544922 seconds strlen on long string took 0.00012493133544922 seconds
Output for 5.6.19
strlen on short string took 9.3936920166016E-5 seconds strlen on long string took 9.2029571533203E-5 seconds
Output for 5.6.18
strlen on short string took 0.00011992454528809 seconds strlen on long string took 0.00013113021850586 seconds
Output for 5.6.17
strlen on short string took 0.00011706352233887 seconds strlen on long string took 0.00011610984802246 seconds
Output for 5.6.16
strlen on short string took 0.00013494491577148 seconds strlen on long string took 0.00013589859008789 seconds
Output for 5.6.15
strlen on short string took 0.00012087821960449 seconds strlen on long string took 0.00011897087097168 seconds
Output for 5.6.14
strlen on short string took 0.00010800361633301 seconds strlen on long string took 0.00010204315185547 seconds
Output for 5.6.13
strlen on short string took 0.00012397766113281 seconds strlen on long string took 0.00013017654418945 seconds
Output for 5.6.12
strlen on short string took 8.8930130004883E-5 seconds strlen on long string took 0.00010585784912109 seconds
Output for 5.6.11
strlen on short string took 0.00012493133544922 seconds strlen on long string took 0.00015115737915039 seconds
Output for 5.6.10
strlen on short string took 0.00013995170593262 seconds strlen on long string took 0.00015401840209961 seconds
Output for 5.6.9
strlen on short string took 0.00013113021850586 seconds strlen on long string took 0.00012803077697754 seconds
Output for 5.6.8
strlen on short string took 7.7962875366211E-5 seconds strlen on long string took 7.8201293945312E-5 seconds
Output for 5.6.7
strlen on short string took 0.00010085105895996 seconds strlen on long string took 9.9897384643555E-5 seconds
Output for 5.6.6
strlen on short string took 0.00012803077697754 seconds strlen on long string took 0.0001220703125 seconds
Output for 5.6.5
strlen on short string took 0.00010299682617188 seconds strlen on long string took 0.0001070499420166 seconds
Output for 5.6.4
strlen on short string took 9.4890594482422E-5 seconds strlen on long string took 9.3936920166016E-5 seconds
Output for 5.6.3
strlen on short string took 0.0001380443572998 seconds strlen on long string took 0.0001220703125 seconds
Output for 5.6.2
strlen on short string took 8.6784362792969E-5 seconds strlen on long string took 8.4877014160156E-5 seconds
Output for 5.6.1
strlen on short string took 7.8916549682617E-5 seconds strlen on long string took 8.9168548583984E-5 seconds
Output for 5.6.0
strlen on short string took 0.00010395050048828 seconds strlen on long string took 0.00010299682617188 seconds
Output for 5.5.35
strlen on short string took 6.8187713623047E-5 seconds strlen on long string took 6.7949295043945E-5 seconds
Output for 5.5.34
strlen on short string took 0.0001370906829834 seconds strlen on long string took 0.00013494491577148 seconds
Output for 5.5.33
strlen on short string took 0.00013184547424316 seconds strlen on long string took 0.00014781951904297 seconds
Output for 5.5.30, 5.5.32
strlen on short string took 0.00012993812561035 seconds strlen on long string took 0.00012898445129395 seconds
Output for 5.5.31
strlen on short string took 0.0001370906829834 seconds strlen on long string took 0.00015592575073242 seconds
Output for 5.5.29
strlen on short string took 0.00012612342834473 seconds strlen on long string took 0.00012683868408203 seconds
Output for 5.5.28
strlen on short string took 0.00013279914855957 seconds strlen on long string took 0.00014781951904297 seconds
Output for 5.5.27
strlen on short string took 0.00011897087097168 seconds strlen on long string took 0.0001370906829834 seconds
Output for 5.5.26
strlen on short string took 0.0001368522644043 seconds strlen on long string took 0.0001370906829834 seconds
Output for 5.5.25
strlen on short string took 8.5115432739258E-5 seconds strlen on long string took 9.5129013061523E-5 seconds
Output for 5.5.24
strlen on short string took 0.00012397766113281 seconds strlen on long string took 0.00013995170593262 seconds
Output for 5.5.23
strlen on short string took 0.00012993812561035 seconds strlen on long string took 0.00012993812561035 seconds
Output for 5.5.22
strlen on short string took 0.00012898445129395 seconds strlen on long string took 0.00013995170593262 seconds
Output for 5.5.21
strlen on short string took 0.00013589859008789 seconds strlen on long string took 0.00013589859008789 seconds
Output for 5.5.20
strlen on short string took 9.3936920166016E-5 seconds strlen on long string took 0.00010418891906738 seconds
Output for 5.5.19
strlen on short string took 0.00014591217041016 seconds strlen on long string took 0.00016283988952637 seconds
Output for 5.5.18
strlen on short string took 0.00014519691467285 seconds strlen on long string took 0.00014185905456543 seconds
Output for 5.5.16
strlen on short string took 0.00013518333435059 seconds strlen on long string took 7.8916549682617E-5 seconds
Output for 5.4.28, 5.5.15
strlen on short string took 8.2969665527344E-5 seconds strlen on long string took 8.2969665527344E-5 seconds
Output for 5.4.3, 5.5.14
strlen on short string took 8.2015991210938E-5 seconds strlen on long string took 8.2015991210938E-5 seconds
Output for 5.5.13
strlen on short string took 8.392333984375E-5 seconds strlen on long string took 9.2029571533203E-5 seconds
Output for 5.5.12
strlen on short string took 8.4161758422852E-5 seconds strlen on long string took 8.1062316894531E-5 seconds
Output for 5.5.11
strlen on short string took 8.082389831543E-5 seconds strlen on long string took 8.0108642578125E-5 seconds
Output for 5.5.10
strlen on short string took 8.4877014160156E-5 seconds strlen on long string took 9.0837478637695E-5 seconds
Output for 5.5.9
strlen on short string took 7.8916549682617E-5 seconds strlen on long string took 8.0108642578125E-5 seconds
Output for 5.5.8
strlen on short string took 7.9870223999023E-5 seconds strlen on long string took 7.7962875366211E-5 seconds
Output for 5.5.7
strlen on short string took 8.1062316894531E-5 seconds strlen on long string took 7.9870223999023E-5 seconds
Output for 5.5.6
strlen on short string took 8.0108642578125E-5 seconds strlen on long string took 8.0108642578125E-5 seconds
Output for 5.5.5
strlen on short string took 0.00017118453979492 seconds strlen on long string took 0.0001680850982666 seconds
Output for 5.4.29, 5.5.4
strlen on short string took 8.0108642578125E-5 seconds strlen on long string took 7.8916549682617E-5 seconds
Output for 5.5.3
strlen on short string took 8.5830688476562E-5 seconds strlen on long string took 8.2015991210938E-5 seconds
Output for 5.5.2
strlen on short string took 8.2015991210938E-5 seconds strlen on long string took 8.082389831543E-5 seconds
Output for 5.5.1
strlen on short string took 8.082389831543E-5 seconds strlen on long string took 7.8916549682617E-5 seconds
Output for 5.5.0
strlen on short string took 7.9870223999023E-5 seconds strlen on long string took 9.7036361694336E-5 seconds
Output for 5.4.45
strlen on short string took 0.00013399124145508 seconds strlen on long string took 0.00015401840209961 seconds
Output for 5.4.44
strlen on short string took 0.00013399124145508 seconds strlen on long string took 0.0001521110534668 seconds
Output for 5.4.43
strlen on short string took 0.00011897087097168 seconds strlen on long string took 0.00011801719665527 seconds
Output for 5.4.42
strlen on short string took 0.00011801719665527 seconds strlen on long string took 0.00011706352233887 seconds
Output for 5.4.41
strlen on short string took 0.00012898445129395 seconds strlen on long string took 0.00012707710266113 seconds
Output for 5.4.40
strlen on short string took 0.0001070499420166 seconds strlen on long string took 0.00011682510375977 seconds
Output for 5.4.39
strlen on short string took 0.00013494491577148 seconds strlen on long string took 0.00013303756713867 seconds
Output for 5.4.15, 5.4.38
strlen on short string took 0.00014209747314453 seconds strlen on long string took 0.00013995170593262 seconds
Output for 5.4.37
strlen on short string took 0.00013613700866699 seconds strlen on long string took 0.00013399124145508 seconds
Output for 5.4.36
strlen on short string took 0.00011205673217773 seconds strlen on long string took 0.00011110305786133 seconds
Output for 5.4.35
strlen on short string took 0.0001380443572998 seconds strlen on long string took 0.00013899803161621 seconds
Output for 5.4.34
strlen on short string took 0.00014305114746094 seconds strlen on long string took 0.00014209747314453 seconds
Output for 5.4.32
strlen on short string took 0.00010800361633301 seconds strlen on long string took 0.00010800361633301 seconds
Output for 5.4.31
strlen on short string took 8.2969665527344E-5 seconds strlen on long string took 8.2015991210938E-5 seconds
Output for 5.4.30
strlen on short string took 8.082389831543E-5 seconds strlen on long string took 9.2029571533203E-5 seconds
Output for 5.4.27
strlen on short string took 8.1062316894531E-5 seconds strlen on long string took 8.2015991210938E-5 seconds
Output for 5.4.22, 5.4.26
strlen on short string took 8.0108642578125E-5 seconds strlen on long string took 7.9870223999023E-5 seconds
Output for 5.4.25
strlen on short string took 8.2969665527344E-5 seconds strlen on long string took 8.0108642578125E-5 seconds
Output for 5.4.24
strlen on short string took 7.8916549682617E-5 seconds strlen on long string took 9.0837478637695E-5 seconds
Output for 5.4.23
strlen on short string took 8.1062316894531E-5 seconds strlen on long string took 7.8916549682617E-5 seconds
Output for 5.4.21
strlen on short string took 8.0108642578125E-5 seconds strlen on long string took 7.9154968261719E-5 seconds
Output for 5.4.20
strlen on short string took 7.8916549682617E-5 seconds strlen on long string took 7.7962875366211E-5 seconds
Output for 5.4.19
strlen on short string took 7.9870223999023E-5 seconds strlen on long string took 9.2029571533203E-5 seconds
Output for 5.4.18
strlen on short string took 8.4877014160156E-5 seconds strlen on long string took 8.702278137207E-5 seconds
Output for 5.4.17
strlen on short string took 7.7962875366211E-5 seconds strlen on long string took 7.7009201049805E-5 seconds
Output for 5.4.16
strlen on short string took 8.2015991210938E-5 seconds strlen on long string took 7.7009201049805E-5 seconds
Output for 5.4.14
strlen on short string took 0.0001380443572998 seconds strlen on long string took 0.00011992454528809 seconds
Output for 5.4.13
strlen on short string took 0.00029087066650391 seconds strlen on long string took 0.00029706954956055 seconds
Output for 5.4.12
strlen on short string took 0.00027704238891602 seconds strlen on long string took 0.00027298927307129 seconds
Output for 5.4.11
strlen on short string took 0.00013089179992676 seconds strlen on long string took 0.00012898445129395 seconds
Output for 5.4.10
strlen on short string took 0.00012397766113281 seconds strlen on long string took 0.0001220703125 seconds
Output for 5.4.9
strlen on short string took 0.00013113021850586 seconds strlen on long string took 0.00012993812561035 seconds
Output for 5.4.8
strlen on short string took 8.2015991210938E-5 seconds strlen on long string took 8.8930130004883E-5 seconds
Output for 5.4.7
strlen on short string took 0.00012803077697754 seconds strlen on long string took 0.00012707710266113 seconds
Output for 5.4.6
strlen on short string took 0.00010204315185547 seconds strlen on long string took 0.00010895729064941 seconds
Output for 5.4.5
strlen on short string took 0.00013089179992676 seconds strlen on long string took 0.00014781951904297 seconds
Output for 5.4.4
strlen on short string took 8.8930130004883E-5 seconds strlen on long string took 8.4161758422852E-5 seconds
Output for 5.4.2
strlen on short string took 8.2015991210938E-5 seconds strlen on long string took 8.1777572631836E-5 seconds
Output for 5.4.1
strlen on short string took 0.00012803077697754 seconds strlen on long string took 0.00013303756713867 seconds
Output for 5.4.0
strlen on short string took 0.00011706352233887 seconds strlen on long string took 0.00012087821960449 seconds
Output for 5.3.29
strlen on short string took 0.00010085105895996 seconds strlen on long string took 9.8943710327148E-5 seconds
Output for 5.3.28
strlen on short string took 0.00010204315185547 seconds strlen on long string took 0.00011420249938965 seconds
Output for 5.3.27
strlen on short string took 9.7990036010742E-5 seconds strlen on long string took 9.7990036010742E-5 seconds
Output for 5.3.26
strlen on short string took 9.2029571533203E-5 seconds strlen on long string took 0.00010800361633301 seconds
Output for 5.3.25
strlen on short string took 0.00013995170593262 seconds strlen on long string took 0.00013995170593262 seconds
Output for 5.3.24
strlen on short string took 0.00014495849609375 seconds strlen on long string took 0.00014495849609375 seconds
Output for 5.3.13 - 5.3.14, 5.3.19, 5.3.23
strlen on short string took 0.00010204315185547 seconds strlen on long string took 0.00010108947753906 seconds
Output for 5.3.4, 5.3.22
strlen on short string took 0.00016999244689941 seconds strlen on long string took 0.00016999244689941 seconds
Output for 5.3.21
strlen on short string took 0.00012397766113281 seconds strlen on long string took 0.00012493133544922 seconds
Output for 5.3.20
strlen on short string took 0.00017809867858887 seconds strlen on long string took 0.00019598007202148 seconds
Output for 5.3.18
strlen on short string took 0.00013613700866699 seconds strlen on long string took 0.00013613700866699 seconds
Output for 5.3.17
strlen on short string took 0.00019311904907227 seconds strlen on long string took 0.00014901161193848 seconds
Output for 5.3.16
strlen on short string took 0.00017499923706055 seconds strlen on long string took 0.00017595291137695 seconds
Output for 5.3.15
strlen on short string took 0.00015902519226074 seconds strlen on long string took 0.00015997886657715 seconds
Output for 5.3.12
strlen on short string took 0.00010299682617188 seconds strlen on long string took 0.00010204315185547 seconds
Output for 5.3.11
strlen on short string took 0.0001680850982666 seconds strlen on long string took 0.0001828670501709 seconds
Output for 5.3.10
strlen on short string took 0.00016689300537109 seconds strlen on long string took 0.00016617774963379 seconds
Output for 5.3.9
strlen on short string took 0.00013995170593262 seconds strlen on long string took 0.00016093254089355 seconds
Output for 5.3.8
strlen on short string took 0.0001220703125 seconds strlen on long string took 0.00012087821960449 seconds
Output for 5.3.7
strlen on short string took 0.00011205673217773 seconds strlen on long string took 0.00012302398681641 seconds
Output for 5.3.6
strlen on short string took 0.0001068115234375 seconds strlen on long string took 0.00010418891906738 seconds
Output for 5.3.5
strlen on short string took 0.00016999244689941 seconds strlen on long string took 0.00018811225891113 seconds
Output for 5.3.3
strlen on short string took 0.00018000602722168 seconds strlen on long string took 0.00017499923706055 seconds
Output for 5.3.2
strlen on short string took 0.00017213821411133 seconds strlen on long string took 0.0001671314239502 seconds
Output for 5.3.1
strlen on short string took 0.00016498565673828 seconds strlen on long string took 0.00016212463378906 seconds
Output for 5.3.0
strlen on short string took 0.00019097328186035 seconds strlen on long string took 0.00018692016601562 seconds
Output for 5.2.17
strlen on short string took 0.00010919570922852 seconds strlen on long string took 0.00011897087097168 seconds
Output for 5.2.16
strlen on short string took 0.00020289421081543 seconds strlen on long string took 0.00020003318786621 seconds
Output for 5.2.15
strlen on short string took 0.00017690658569336 seconds strlen on long string took 0.00019717216491699 seconds
Output for 5.2.14
strlen on short string took 0.00017309188842773 seconds strlen on long string took 0.00017213821411133 seconds
Output for 5.2.13
strlen on short string took 0.00012087821960449 seconds strlen on long string took 0.00012111663818359 seconds
Output for 5.2.12
strlen on short string took 0.00018906593322754 seconds strlen on long string took 0.00018978118896484 seconds
Output for 5.2.11
strlen on short string took 0.00020003318786621 seconds strlen on long string took 0.00018596649169922 seconds
Output for 5.2.10
strlen on short string took 0.00018715858459473 seconds strlen on long string took 0.00018000602722168 seconds
Output for 5.2.9
strlen on short string took 0.00018787384033203 seconds strlen on long string took 0.00022006034851074 seconds
Output for 5.2.6, 5.2.8
strlen on short string took 0.00018310546875 seconds strlen on long string took 0.00018000602722168 seconds
Output for 5.2.7
strlen on short string took 0.00015687942504883 seconds strlen on long string took 0.00016498565673828 seconds
Output for 5.2.5
strlen on short string took 0.00014686584472656 seconds strlen on long string took 0.00016188621520996 seconds
Output for 5.2.4
strlen on short string took 0.00013208389282227 seconds strlen on long string took 0.00012993812561035 seconds
Output for 5.2.3
strlen on short string took 0.0001981258392334 seconds strlen on long string took 0.0001990795135498 seconds
Output for 5.2.2
strlen on short string took 0.00021505355834961 seconds strlen on long string took 0.0001988410949707 seconds
Output for 5.2.1
strlen on short string took 0.00020003318786621 seconds strlen on long string took 0.00018310546875 seconds
Output for 5.2.0
strlen on short string took 0.00019407272338867 seconds strlen on long string took 0.00019288063049316 seconds
Output for 5.1.6
strlen on short string took 0.00020503997802734 seconds strlen on long string took 0.0001680850982666 seconds
Output for 5.1.5
strlen on short string took 0.00016903877258301 seconds strlen on long string took 0.00018000602722168 seconds
Output for 5.1.4
strlen on short string took 0.00020194053649902 seconds strlen on long string took 0.00022506713867188 seconds
Output for 5.1.3
strlen on short string took 0.00016403198242188 seconds strlen on long string took 0.00016283988952637 seconds
Output for 5.1.2
strlen on short string took 0.00012993812561035 seconds strlen on long string took 0.00014090538024902 seconds
Output for 5.1.1
strlen on short string took 0.0001680850982666 seconds strlen on long string took 0.00017094612121582 seconds
Output for 5.1.0
strlen on short string took 0.00015401840209961 seconds strlen on long string took 0.00017499923706055 seconds
Output for 5.0.5
strlen on short string took 0.00038790702819824 seconds strlen on long string took 0.00039005279541016 seconds
Output for 5.0.4
strlen on short string took 0.00027799606323242 seconds strlen on long string took 0.00027704238891602 seconds
Output for 5.0.3
strlen on short string took 0.00021505355834961 seconds strlen on long string took 0.00021505355834961 seconds
Output for 5.0.2
strlen on short string took 0.00045490264892578 seconds strlen on long string took 0.00044798851013184 seconds
Output for 5.0.1
strlen on short string took 0.00029993057250977 seconds strlen on long string took 0.00029802322387695 seconds
Output for 5.0.0
strlen on short string took 0.00033092498779297 seconds strlen on long string took 0.00033211708068848 seconds
Output for 4.4.9
strlen on short string took 0.00044600000000006 seconds strlen on long string took 0.00043499999999996 seconds
Output for 4.4.8
strlen on short string took 0.000281 seconds strlen on long string took 0.000277 seconds
Output for 4.4.7
strlen on short string took 0.00023899999999999 seconds strlen on long string took 0.000234 seconds
Output for 4.4.6
strlen on short string took 0.00042699999999998 seconds strlen on long string took 0.000413 seconds
Output for 4.4.5
strlen on short string took 0.000444 seconds strlen on long string took 0.00043100000000001 seconds
Output for 4.4.4
strlen on short string took 0.00027000000000001 seconds strlen on long string took 0.00025900000000001 seconds
Output for 4.4.3
strlen on short string took 0.00045899999999999 seconds strlen on long string took 0.00044 seconds
Output for 4.4.2
strlen on short string took 0.000448 seconds strlen on long string took 0.00044 seconds
Output for 4.4.1
strlen on short string took 0.00044899999999992 seconds strlen on long string took 0.00044200000000005 seconds
Output for 4.4.0
strlen on short string took 0.000392 seconds strlen on long string took 0.00036700000000001 seconds
Output for 4.3.11
strlen on short string took 0.00022 seconds strlen on long string took 0.00021300000000002 seconds
Output for 4.3.10
strlen on short string took 0.00046099999999999 seconds strlen on long string took 0.000497 seconds
Output for 4.3.9
strlen on short string took 0.00046299999999999 seconds strlen on long string took 0.000444 seconds
Output for 4.3.8
strlen on short string took 0.000304 seconds strlen on long string took 0.00028400000000001 seconds
Output for 4.3.7
strlen on short string took 0.00036799999999998 seconds strlen on long string took 0.00038699999999997 seconds
Output for 4.3.6
strlen on short string took 0.00039999999999996 seconds strlen on long string took 0.00041799999999992 seconds
Output for 4.3.5
strlen on short string took 0.00037100000000001 seconds strlen on long string took 0.00035099999999999 seconds
Output for 4.3.4
strlen on short string took 0.00024800000000003 seconds strlen on long string took 0.00025699999999995 seconds
Output for 4.3.3
strlen on short string took 0.00022999999999995 seconds strlen on long string took 0.000224 seconds
Output for 4.3.2
strlen on short string took 0.00037199999999998 seconds strlen on long string took 0.00035700000000002 seconds
Output for 4.3.1
strlen on short string took 0.00080199999999997 seconds strlen on long string took 0.000467 seconds
Output for 4.3.0
strlen on short string took 0.00039100000000003 seconds strlen on long string took 0.00038700000000003 seconds