3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = ''; $len = 100; $start = microtime(true); for ($i = 0; $i < $len; $i++) { $html .= 'a'; } var_dump(microtime(true) - $start); $html = ''; $start = microtime(true); $tmp = array(); for ($i = 0; $i < $len; $i++) { $tmp[] = 'a'; } $html = join('', $tmp); var_dump(microtime(true) - $start);
Output for 7.1.0
float(5.0067901611328E-6) float(5.9604644775391E-6)
Output for 7.0.14
float(1.0013580322266E-5) float(1.0013580322266E-5)
Output for 7.0.7
float(5.9604644775391E-6) float(8.1062316894531E-6)
Output for 7.0.6
float(7.1525573730469E-6) float(8.1062316894531E-6)
Output for 7.0.5
float(5.9604644775391E-6) float(5.9604644775391E-6)
Output for 7.0.4
float(7.8678131103516E-6) float(7.8678131103516E-6)
Output for 7.0.3
float(5.9604644775391E-6) float(6.9141387939453E-6)
Output for 7.0.0, 7.0.2
float(7.1525573730469E-6) float(6.9141387939453E-6)
Output for 7.0.1
float(6.9141387939453E-6) float(8.1062316894531E-6)
Output for hhvm-3.12.0
float(1.8119812011719E-5) float(1.215934753418E-5)
Output for hhvm-3.10.0
float(2.0027160644531E-5) float(1.4066696166992E-5)
Output for 5.6.28
float(1.0967254638672E-5) float(3.0040740966797E-5)
Output for 5.4.31, 5.6.22
float(6.9141387939453E-6) float(2.598762512207E-5)
Output for 5.6.21
float(9.7751617431641E-6) float(2.8133392333984E-5)
Output for 5.6.19 - 5.6.20
float(1.0013580322266E-5) float(2.7179718017578E-5)
Output for 5.4.34, 5.6.10, 5.6.18
float(1.0013580322266E-5) float(2.8133392333984E-5)
Output for 5.5.33, 5.6.17
float(1.0967254638672E-5) float(2.9087066650391E-5)
Output for 5.6.16
float(9.0599060058594E-6) float(2.2172927856445E-5)
Output for 5.5.28 - 5.5.29, 5.5.34, 5.6.15
float(1.0013580322266E-5) float(2.7894973754883E-5)
Output for 5.4.32, 5.4.38, 5.5.13, 5.6.14
float(9.0599060058594E-6) float(2.598762512207E-5)
Output for 5.4.39, 5.6.13
float(1.0013580322266E-5) float(2.9087066650391E-5)
Output for 5.6.12
float(1.0013580322266E-5) float(4.1007995605469E-5)
Output for 5.3.29, 5.4.35, 5.4.45, 5.5.6, 5.6.11
float(1.0013580322266E-5) float(2.598762512207E-5)
Output for 5.6.9
float(7.8678131103516E-6) float(2.288818359375E-5)
Output for 5.3.20, 5.6.8
float(5.9604644775391E-6) float(2.5033950805664E-5)
Output for 5.6.7
float(6.9141387939453E-6) float(2.4795532226562E-5)
Output for 5.4.6, 5.6.6
float(6.9141387939453E-6) float(1.9073486328125E-5)
Output for 5.4.44, 5.5.4, 5.6.5
float(9.0599060058594E-6) float(2.5033950805664E-5)
Output for 5.6.4
float(9.0599060058594E-6) float(3.0040740966797E-5)
Output for 5.6.3
float(8.1062316894531E-6) float(2.5033950805664E-5)
Output for 5.6.2
float(7.1525573730469E-6) float(1.9073486328125E-5)
Output for 5.4.43, 5.6.1
float(9.7751617431641E-6) float(2.7894973754883E-5)
Output for 5.4.40, 5.5.36 - 5.6.0
float(1.0013580322266E-5) float(2.6941299438477E-5)
Output for 5.5.35
float(8.8214874267578E-6) float(4.0054321289062E-5)
Output for 5.5.32
float(9.0599060058594E-6) float(2.7179718017578E-5)
Output for 5.5.31
float(9.0599060058594E-6) float(2.6941299438477E-5)
Output for 5.5.30
float(9.0599060058594E-6) float(2.8133392333984E-5)
Output for 5.4.37, 5.5.27
float(1.0013580322266E-5) float(2.8848648071289E-5)
Output for 5.5.26
float(1.0013580322266E-5) float(2.5033950805664E-5)
Output for 5.5.25
float(8.1062316894531E-6) float(2.2172927856445E-5)
Output for 5.5.24
float(7.1525573730469E-6) float(2.5033950805664E-5)
Output for 5.5.23
float(9.7751617431641E-6) float(3.814697265625E-5)
Output for 5.5.22
float(7.8678131103516E-6) float(3.1948089599609E-5)
Output for 5.5.21
float(9.0599060058594E-6) float(3.7193298339844E-5)
Output for 5.5.20
float(8.8214874267578E-6) float(2.598762512207E-5)
Output for 5.5.19
float(1.0013580322266E-5) float(3.0040740966797E-5)
Output for 5.5.18
float(9.0599060058594E-6) float(3.504753112793E-5)
Output for 5.5.16
float(1.0013580322266E-5) float(3.3855438232422E-5)
Output for 5.3.16, 5.4.5, 5.4.18, 5.4.27, 5.5.11, 5.5.15
float(5.9604644775391E-6) float(1.8119812011719E-5)
Output for 5.5.14
float(7.1525573730469E-6) float(2.0980834960938E-5)
Output for 5.4.10, 5.5.12
float(6.1988830566406E-6) float(2.1934509277344E-5)
Output for 5.5.10
float(7.1525573730469E-6) float(1.6927719116211E-5)
Output for 5.5.8 - 5.5.9
float(5.0067901611328E-6) float(2.0027160644531E-5)
Output for 5.5.7
float(1.0967254638672E-5) float(3.1948089599609E-5)
Output for 5.4.19, 5.5.5
float(8.8214874267578E-6) float(2.1934509277344E-5)
Output for 5.5.3
float(9.0599060058594E-6) float(2.3841857910156E-5)
Output for 5.4.4, 5.5.2
float(8.1062316894531E-6) float(2.0980834960938E-5)
Output for 5.5.1
float(5.0067901611328E-6) float(1.5974044799805E-5)
Output for 5.4.7, 5.4.16, 5.5.0
float(5.9604644775391E-6) float(1.5020370483398E-5)
Output for 5.4.42
float(9.0599060058594E-6) float(3.4093856811523E-5)
Output for 5.4.41
float(1.0013580322266E-5) float(4.2200088500977E-5)
Output for 5.4.36
float(9.0599060058594E-6) float(4.0054321289062E-5)
Output for 5.3.21, 5.3.23, 5.3.27, 5.4.30
float(5.9604644775391E-6) float(1.7881393432617E-5)
Output for 5.4.29
float(6.1988830566406E-6) float(1.9073486328125E-5)
Output for 5.4.28
float(6.1988830566406E-6) float(2.5033950805664E-5)
Output for 5.4.26
float(5.9604644775391E-6) float(1.3828277587891E-5)
Output for 5.4.25
float(5.0067901611328E-6) float(2.4080276489258E-5)
Output for 5.4.24
float(5.0067901611328E-6) float(1.6212463378906E-5)
Output for 5.3.11 - 5.3.13, 5.4.23
float(5.9604644775391E-6) float(1.6927719116211E-5)
Output for 5.4.22
float(5.9604644775391E-6) float(2.0980834960938E-5)
Output for 5.4.21
float(6.9141387939453E-6) float(2.5033950805664E-5)
Output for 5.4.1, 5.4.20
float(5.9604644775391E-6) float(1.4066696166992E-5)
Output for 5.4.11, 5.4.17
float(5.0067901611328E-6) float(1.5020370483398E-5)
Output for 5.4.15
float(9.0599060058594E-6) float(2.1934509277344E-5)
Output for 5.4.3, 5.4.14
float(9.0599060058594E-6) float(2.0980834960938E-5)
Output for 5.4.13
float(5.9604644775391E-6) float(1.5974044799805E-5)
Output for 5.4.12
float(5.0067901611328E-6) float(1.7166137695312E-5)
Output for 5.4.9
float(6.1988830566406E-6) float(1.5020370483398E-5)
Output for 5.3.25, 5.4.8
float(6.1988830566406E-6) float(1.7881393432617E-5)
Output for 5.4.2
float(9.0599060058594E-6) float(2.0027160644531E-5)
Output for 5.4.0
float(7.1525573730469E-6) float(1.8119812011719E-5)
Output for 5.3.28
float(6.9141387939453E-6) float(2.0027160644531E-5)
Output for 5.3.26
float(1.0967254638672E-5) float(2.598762512207E-5)
Output for 5.3.24
float(5.9604644775391E-6) float(2.4080276489258E-5)
Output for 5.3.17, 5.3.22
float(6.9141387939453E-6) float(1.6927719116211E-5)
Output for 5.3.19
float(6.9141387939453E-6) float(2.0980834960938E-5)
Output for 5.3.18
float(6.9141387939453E-6) float(1.8119812011719E-5)
Output for 5.3.15
float(1.1920928955078E-5) float(3.3855438232422E-5)
Output for 5.3.14
float(1.0967254638672E-5) float(2.7894973754883E-5)
Output for 5.3.10
float(8.1062316894531E-6) float(3.6001205444336E-5)
Output for 5.3.9
float(1.0967254638672E-5) float(3.2901763916016E-5)
Output for 5.3.8
float(1.0967254638672E-5) float(4.3869018554688E-5)
Output for 5.3.7
float(1.3113021850586E-5) float(4.4822692871094E-5)
Output for 5.3.6
float(9.7751617431641E-6) float(2.6941299438477E-5)
Output for 5.3.5
float(1.1920928955078E-5) float(4.0054321289062E-5)
Output for 5.3.4
float(1.3113021850586E-5) float(4.2915344238281E-5)
Output for 5.3.3
float(1.215934753418E-5) float(5.1975250244141E-5)
Output for 5.3.2
float(1.0967254638672E-5) float(3.504753112793E-5)
Output for 5.3.1
float(1.1920928955078E-5) float(5.2928924560547E-5)
Output for 5.3.0
float(1.215934753418E-5) float(3.7193298339844E-5)
Output for 5.2.17
float(1.4066696166992E-5) float(4.1007995605469E-5)
Output for 5.2.10, 5.2.16
float(1.4066696166992E-5) float(4.0054321289062E-5)
Output for 5.1.0, 5.2.15
float(1.2874603271484E-5) float(4.8160552978516E-5)
Output for 5.2.14
float(1.5974044799805E-5) float(4.4822692871094E-5)
Output for 5.2.13
float(1.4066696166992E-5) float(3.9815902709961E-5)
Output for 5.2.12
float(1.5020370483398E-5) float(4.0054321289062E-5)
Output for 5.2.11
float(1.6927719116211E-5) float(4.2915344238281E-5)
Output for 5.2.9
float(1.4066696166992E-5) float(4.8160552978516E-5)
Output for 5.2.8
float(2.7179718017578E-5) float(7.4863433837891E-5)
Output for 5.2.7
float(1.3113021850586E-5) float(3.7908554077148E-5)
Output for 5.2.6
float(1.5020370483398E-5) float(4.2915344238281E-5)
Output for 5.2.5
float(2.0027160644531E-5) float(5.4836273193359E-5)
Output for 5.2.4
float(1.5020370483398E-5) float(6.2227249145508E-5)
Output for 5.2.3
float(1.4066696166992E-5) float(5.0067901611328E-5)
Output for 5.2.2
float(1.2874603271484E-5) float(5.8889389038086E-5)
Output for 5.2.1
float(1.2874603271484E-5) float(3.6954879760742E-5)
Output for 5.2.0
float(1.5020370483398E-5) float(3.6001205444336E-5)
Output for 5.1.6
float(1.6927719116211E-5) float(5.9127807617188E-5)
Output for 5.1.5
float(1.9073486328125E-5) float(6.8902969360352E-5)
Output for 5.1.4
float(1.8119812011719E-5) float(6.5803527832031E-5)
Output for 5.1.3
float(1.7881393432617E-5) float(5.793571472168E-5)
Output for 5.1.2
float(1.5974044799805E-5) float(6.103515625E-5)
Output for 5.1.1
float(1.5974044799805E-5) float(5.6028366088867E-5)
Output for 5.0.5
float(3.9100646972656E-5) float(8.392333984375E-5)
Output for 5.0.4
float(4.1007995605469E-5) float(9.0122222900391E-5)
Output for 5.0.3
float(3.2901763916016E-5) float(7.4148178100586E-5)
Output for 5.0.2
float(4.1007995605469E-5) float(8.392333984375E-5)
Output for 5.0.1
float(3.7193298339844E-5) float(8.0108642578125E-5)
Output for 5.0.0
float(3.3140182495117E-5) float(7.1048736572266E-5)
Output for 4.4.9
float(8.7000000000004E-5) float(0.00020599999999998)
Output for 4.4.8
float(3.9999999999929E-5) float(8.7999999999977E-5)
Output for 4.4.7
float(4.9000000000021E-5) float(0.000111)
Output for 4.4.6
float(5.4999999999972E-5) float(0.000112)
Output for 4.4.5
float(6.8000000000012E-5) float(0.00012299999999998)
Output for 4.4.4
float(4.1000000000069E-5) float(9.4000000000038E-5)
Output for 4.4.3
float(4.599999999999E-5) float(0.00010400000000002)
Output for 4.4.2
float(2.9999999999974E-5) float(6.000000000006E-5)
Output for 4.4.1
float(5.1000000000002E-5) float(0.000106)
Output for 4.4.0
float(4.7000000000019E-5) float(9.5999999999985E-5)
Output for 4.3.11
float(4.9999999999994E-5) float(0.00012000000000001)
Output for 4.3.10
float(4.4999999999962E-5) float(0.00010599999999994)
Output for 4.3.9
float(6.0999999999999E-5) float(0.000118)
Output for 4.3.8
float(5.3000000000025E-5) float(9.899999999996E-5)
Output for 4.3.7
float(5.6999999999974E-5) float(0.00011399999999995)
Output for 4.3.6
float(5.3999999999998E-5) float(0.00012200000000007)
Output for 4.3.5
float(4.4000000000044E-5) float(9.4999999999956E-5)
Output for 4.3.4
float(5.0000000000001E-5) float(9.5999999999999E-5)
Output for 4.3.3
float(5.9000000000003E-5) float(0.000112)
Output for 4.3.2
float(4.9999999999994E-5) float(0.000115)
Output for 4.3.1
float(5.6E-5) float(9.1999999999981E-5)
Output for 4.3.0
float(4.1999999999986E-5) float(7.8999999999996E-5)