3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function xrange($start, $limit, $step = 1) { for ($i = $start; $i <= $limit; $i += $step) { yield $i; } } $time = microtime(true); $first = implode(' ', range(1,1000, 2)); $time1 = microtime(true); $second = implode(' ', xrange(1, 1000, 2)); $time2 = microtime(true); var_dump($time2- $time1, $time1 - $time);
Output for 7.1.0
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(1.8835067749023E-5) float(1.0967254638672E-5)
Output for 7.0.14
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.7179718017578E-5) float(1.6927719116211E-5)
Output for 7.0.10
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(1.9073486328125E-5) float(1.4066696166992E-5)
Output for 7.0.9
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.6941299438477E-5) float(1.9073486328125E-5)
Output for 7.0.8
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.8848648071289E-5) float(2.4080276489258E-5)
Output for 7.0.7
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.0980834960938E-5) float(1.7166137695312E-5)
Output for 7.0.6
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00011610984802246)
Output for 7.0.5
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(0.00012397766113281)
Output for 5.6.22, 7.0.4
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(0.0001070499420166)
Output for 7.0.3
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(9.2029571533203E-5)
Output for 5.5.16, 5.5.19, 7.0.2
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00010895729064941)
Output for 7.0.1
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00011205673217773)
Output for 7.0.0
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(8.8930130004883E-5)
Output for hhvm-3.12.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/DTJtB on line 11 float(0.00020813941955566) float(0.00019192695617676)
Output for hhvm-3.10.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/DTJtB on line 11 float(0.00027108192443848) float(0.00035691261291504)
Output for 5.6.28
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00012898445129395)
Output for 5.6.25
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.0980834960938E-5) float(0.00011396408081055)
Output for 5.6.24
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.6941299438477E-5) float(0.00013303756713867)
Output for 5.6.23
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(3.0040740966797E-5) float(0.00014209747314453)
Output for 5.6.21
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.7894973754883E-5) float(0.00011801719665527)
Output for 5.6.20
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(0.00012087821960449)
Output for 5.6.19
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3841857910156E-5) float(0.00011205673217773)
Output for 5.6.18
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.0980834960938E-5) float(9.4175338745117E-5)
Output for 5.6.17
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.1934509277344E-5) float(0.00010991096496582)
Output for 5.6.16
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00011491775512695)
Output for 5.6.15
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00012397766113281)
Output for 5.6.14
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00011992454528809)
Output for 5.6.13
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(9.7990036010742E-5)
Output for 5.6.12
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00011897087097168)
Output for 5.6.11
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3841857910156E-5) float(0.00010299682617188)
Output for 5.6.10
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.8133392333984E-5) float(0.0001378059387207)
Output for 5.6.9
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00011301040649414)
Output for 5.6.8
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(0.0001220703125)
Output for 5.6.7
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3841857910156E-5) float(0.00011801719665527)
Output for 5.6.6
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00011396408081055)
Output for 5.6.5
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00012087821960449)
Output for 5.6.4
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(0.00012707710266113)
Output for 5.5.27, 5.6.3
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.7894973754883E-5) float(0.00011014938354492)
Output for 5.6.2
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.0027160644531E-5) float(8.4161758422852E-5)
Output for 5.6.1
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.8848648071289E-5) float(0.00012707710266113)
Output for 5.6.0
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3126602172852E-5) float(0.00010395050048828)
Output for 5.5.38
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(1.9073486328125E-5) float(8.2015991210938E-5)
Output for 5.5.37
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00010585784912109)
Output for 5.5.36
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.7894973754883E-5) float(0.00011706352233887)
Output for 5.5.35
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.2172927856445E-5) float(8.4877014160156E-5)
Output for 5.5.34
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3126602172852E-5) float(0.00010085105895996)
Output for 5.5.33
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3126602172852E-5) float(0.00010895729064941)
Output for 5.5.32
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00012302398681641)
Output for 5.5.31
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(3.7908554077148E-5) float(0.00017404556274414)
Output for 5.5.30
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(3.6001205444336E-5) float(0.00012493133544922)
Output for 5.5.29
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.288818359375E-5) float(0.00010800361633301)
Output for 5.5.28
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(3.504753112793E-5) float(0.0001378059387207)
Output for 5.5.26
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.8848648071289E-5) float(0.0001521110534668)
Output for 5.5.25
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(9.2029571533203E-5)
Output for 5.5.24
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.8848648071289E-5) float(0.00013399124145508)
Output for 5.5.23
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.598762512207E-5) float(8.702278137207E-5)
Output for 5.5.22
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3126602172852E-5) float(0.00010180473327637)
Output for 5.5.21
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.1934509277344E-5) float(8.8214874267578E-5)
Output for 5.5.20
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(4.4107437133789E-5) float(0.00011491775512695)
Output for 5.5.18
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.0027160644531E-5) float(0.00011086463928223)
Output for 5.5.15
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(1.6927719116211E-5) float(7.9870223999023E-5)
Output for 5.5.14
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.1934509277344E-5) float(8.0108642578125E-5)
Output for 5.5.13
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.1934509277344E-5) float(0.00010204315185547)
Output for 5.5.12
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00012612342834473)
Output for 5.5.11
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.9087066650391E-5) float(0.00011396408081055)
Output for 5.5.10
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.288818359375E-5) float(0.00012397766113281)
Output for 5.5.9
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(1.8119812011719E-5) float(8.082389831543E-5)
Output for 5.5.8
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(9.2983245849609E-5)
Output for 5.5.7
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(6.0796737670898E-5) float(0.0001070499420166)
Output for 5.5.6
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.8133392333984E-5) float(0.00013208389282227)
Output for 5.5.5
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.5033950805664E-5) float(0.00012803077697754)
Output for 5.5.4
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(9.7990036010742E-5)
Output for 5.5.3
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.1934509277344E-5) float(9.7990036010742E-5)
Output for 5.5.2
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.3126602172852E-5) float(9.8943710327148E-5)
Output for 5.5.1
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.4080276489258E-5) float(0.00010085105895996)
Output for 5.5.0
Warning: implode(): Invalid arguments passed in /in/DTJtB on line 11 float(2.9087066650391E-5) float(0.00012683868408203)
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '$i' (T_VARIABLE) in /in/DTJtB on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_VARIABLE in /in/DTJtB on line 4
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 T_VARIABLE in /in/DTJtB on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/DTJtB on line 4
Process exited with code 255.