3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = [ 'a' => 1, 'b' => 2 ]; class A { public $a = 1; public $b = 2; } $a = new A(); $t0 = microtime(TRUE); for ($i = 0; $i < 500; ++$i) { $s = $array['a'] . $array['b']; } $t1 = microtime(TRUE); echo ($t1 - $t0) . "seconds\n"; for ($i = 0; $i < 500; ++$i) { $s = $a->a . $a->b; } $t2 = microtime(TRUE); echo ($t2 - $t1) . "seconds\n";
Output for 7.1.0
8.2015991210938E-5seconds 9.7036361694336E-5seconds
Output for 7.0.14
8.6069107055664E-5seconds 0.00010108947753906seconds
Output for 7.0.12
9.2983245849609E-5seconds 9.4890594482422E-5seconds
Output for 7.0.6
4.887580871582E-5seconds 6.6041946411133E-5seconds
Output for 7.0.5
8.2015991210938E-5seconds 7.7009201049805E-5seconds
Output for 7.0.4
7.1048736572266E-5seconds 7.7962875366211E-5seconds
Output for 7.0.3
7.7009201049805E-5seconds 0.00013899803161621seconds
Output for 7.0.2
4.4107437133789E-5seconds 7.2956085205078E-5seconds
Output for 7.0.1
8.392333984375E-5seconds 0.00010895729064941seconds
Output for 7.0.0
5.5074691772461E-5seconds 6.103515625E-5seconds
Output for hhvm-3.12.0
7.5817108154297E-5seconds 0.00012803077697754seconds
Output for hhvm-3.10.0
9.8943710327148E-5seconds 0.00012302398681641seconds
Output for 5.6.28
0.00017499923706055seconds 0.0001838207244873seconds
Output for 5.6.21
0.00010490417480469seconds 0.00011801719665527seconds
Output for 5.6.20
8.4877014160156E-5seconds 0.00011014938354492seconds
Output for 5.6.19
0.00013494491577148seconds 0.00016689300537109seconds
Output for 5.6.18
0.00013303756713867seconds 0.00014710426330566seconds
Output for 5.5.30, 5.6.17
0.00012898445129395seconds 0.00014114379882812seconds
Output for 5.6.16
0.00010514259338379seconds 0.00011396408081055seconds
Output for 5.6.15
0.00013399124145508seconds 0.00014710426330566seconds
Output for 5.6.14
0.00011801719665527seconds 0.00014495849609375seconds
Output for 5.6.13
0.0001378059387207seconds 0.00017404556274414seconds
Output for 5.6.12
0.00013303756713867seconds 0.00014185905456543seconds
Output for 5.6.11
0.00013518333435059seconds 0.00014781951904297seconds
Output for 5.6.10
0.00016403198242188seconds 0.00017809867858887seconds
Output for 5.6.9
0.00012397766113281seconds 0.00014805793762207seconds
Output for 5.5.13, 5.6.8
0.00011205673217773seconds 0.00012397766113281seconds
Output for 5.6.7
0.00018191337585449seconds 0.00020289421081543seconds
Output for 5.6.6
8.4877014160156E-5seconds 0.00010490417480469seconds
Output for 5.6.5
0.00014305114746094seconds 0.00015497207641602seconds
Output for 5.6.4
0.00013303756713867seconds 0.00014805793762207seconds
Output for 5.6.3
0.00012516975402832seconds 0.00015902519226074seconds
Output for 5.6.2
0.00012803077697754seconds 0.00014090538024902seconds
Output for 5.6.1
0.00013279914855957seconds 0.00014710426330566seconds
Output for 5.6.0
0.00013995170593262seconds 0.00017595291137695seconds
Output for 5.5.35
0.00014185905456543seconds 0.00015902519226074seconds
Output for 5.5.34
0.00012707710266113seconds 0.00013494491577148seconds
Output for 5.5.33
0.00019598007202148seconds 0.00018596649169922seconds
Output for 5.5.32
0.0001678466796875seconds 0.00018215179443359seconds
Output for 5.5.31
0.00014090538024902seconds 0.00015401840209961seconds
Output for 5.5.29
0.00014305114746094seconds 0.00015807151794434seconds
Output for 5.5.28
0.00014185905456543seconds 0.00018906593322754seconds
Output for 5.5.27
0.00013899803161621seconds 0.00014901161193848seconds
Output for 5.5.26
0.00014305114746094seconds 0.0001990795135498seconds
Output for 5.5.25
0.0001380443572998seconds 0.00015497207641602seconds
Output for 5.5.24
0.00012493133544922seconds 0.00014114379882812seconds
Output for 5.5.23
8.6784362792969E-5seconds 0.00011301040649414seconds
Output for 5.5.22
0.00010299682617188seconds 0.00011587142944336seconds
Output for 5.5.21
0.00013399124145508seconds 0.00014996528625488seconds
Output for 5.5.20
9.2029571533203E-5seconds 0.00012087821960449seconds
Output for 5.5.19
9.7990036010742E-5seconds 0.00011396408081055seconds
Output for 5.5.18
0.00012803077697754seconds 0.00017094612121582seconds
Output for 5.5.16
9.4175338745117E-5seconds 9.7990036010742E-5seconds
Output for 5.4.21, 5.5.15
0.00013589859008789seconds 0.00015401840209961seconds
Output for 5.5.14
0.00013613700866699seconds 0.00015997886657715seconds
Output for 5.5.12
0.00014209747314453seconds 0.0001530647277832seconds
Output for 5.5.11
0.00014090538024902seconds 0.00015711784362793seconds
Output for 5.5.10
0.00011396408081055seconds 0.00010108947753906seconds
Output for 5.5.9
0.00012111663818359seconds 0.00013589859008789seconds
Output for 5.5.8
0.00014185905456543seconds 0.00015401840209961seconds
Output for 5.5.7
0.00013899803161621seconds 0.0001518726348877seconds
Output for 5.5.6
0.00011801719665527seconds 0.00011205673217773seconds
Output for 5.5.5
0.00011587142944336seconds 0.00012922286987305seconds
Output for 5.5.4
0.00013613700866699seconds 0.00015401840209961seconds
Output for 5.5.3
0.00015091896057129seconds 0.0001680850982666seconds
Output for 5.5.2
0.00014305114746094seconds 0.00016283988952637seconds
Output for 5.5.1
0.00012612342834473seconds 0.0001380443572998seconds
Output for 5.5.0
0.00013089179992676seconds 0.00014710426330566seconds
Output for 5.4.45
0.00014019012451172seconds 0.00015687942504883seconds
Output for 5.4.44
0.00011610984802246seconds 0.00015497207641602seconds
Output for 5.4.43
0.00012493133544922seconds 0.00014090538024902seconds
Output for 5.4.42
0.00012493133544922seconds 0.00015401840209961seconds
Output for 5.4.41
0.00013923645019531seconds 0.0001838207244873seconds
Output for 5.4.40
0.00011110305786133seconds 0.00011897087097168seconds
Output for 5.4.39
0.00013995170593262seconds 0.00016212463378906seconds
Output for 5.4.38
0.00012922286987305seconds 0.00014686584472656seconds
Output for 5.4.37
0.00015902519226074seconds 0.00015711784362793seconds
Output for 5.4.36
0.00012803077697754seconds 0.00017309188842773seconds
Output for 5.4.35
0.00011205673217773seconds 0.00015687942504883seconds
Output for 5.4.34
0.00012588500976562seconds 0.00017094612121582seconds
Output for 5.4.32
0.0001370906829834seconds 0.00018501281738281seconds
Output for 5.4.31
0.00013899803161621seconds 0.00015401840209961seconds
Output for 5.4.30
0.00013399124145508seconds 0.00016403198242188seconds
Output for 5.4.29
0.00014996528625488seconds 0.00018811225891113seconds
Output for 5.4.28
0.0001220703125seconds 0.0001378059387207seconds
Output for 5.4.27
0.00012898445129395seconds 0.00016403198242188seconds
Output for 5.4.26
0.00011706352233887seconds 0.00014686584472656seconds
Output for 5.4.25
0.00012993812561035seconds 0.00014591217041016seconds
Output for 5.4.24
0.00013208389282227seconds 0.00016307830810547seconds
Output for 5.4.23
0.00010514259338379seconds 0.00013899803161621seconds
Output for 5.4.22
0.00011897087097168seconds 0.00015616416931152seconds
Output for 5.4.20
8.2015991210938E-5seconds 9.5844268798828E-5seconds
Output for 5.4.19
0.00013589859008789seconds 0.00016212463378906seconds
Output for 5.4.18
0.00013613700866699seconds 0.0001528263092041seconds
Output for 5.4.17
0.00010180473327637seconds 0.00013017654418945seconds
Output for 5.4.16
0.00013589859008789seconds 0.00017309188842773seconds
Output for 5.4.15
0.00011110305786133seconds 0.00012397766113281seconds
Output for 5.4.14
0.0001380443572998seconds 0.00018310546875seconds
Output for 5.4.13
0.00014400482177734seconds 0.00016403198242188seconds
Output for 5.4.12
0.00011491775512695seconds 0.00012612342834473seconds
Output for 5.4.11
0.00010085105895996seconds 0.00012898445129395seconds
Output for 5.4.10
9.608268737793E-5seconds 0.00010585784912109seconds
Output for 5.4.9
0.00012302398681641seconds 0.00014400482177734seconds
Output for 5.4.8
8.1062316894531E-5seconds 9.7036361694336E-5seconds
Output for 5.4.7
0.00012016296386719seconds 0.00013089179992676seconds
Output for 5.4.6
0.0001368522644043seconds 0.00018215179443359seconds
Output for 5.4.5
8.2969665527344E-5seconds 9.2983245849609E-5seconds
Output for 5.4.4
0.00013589859008789seconds 0.00014996528625488seconds
Output for 5.4.3
0.00013899803161621seconds 0.00015616416931152seconds
Output for 5.4.2
0.00014114379882812seconds 0.00015687942504883seconds
Output for 5.4.1
0.00011396408081055seconds 0.00012803077697754seconds
Output for 5.4.0
8.2969665527344E-5seconds 0.00011110305786133seconds
Output for 5.2.3 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/L3cGr on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.2
<br /> <b>Parse error</b>: syntax error, unexpected '[' in <b>/in/L3cGr</b> on line <b>2</b><br />
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
<br /> <b>Parse error</b>: parse error, unexpected '[' in <b>/in/L3cGr</b> on line <b>2</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error in <b>/in/L3cGr</b> on line <b>2</b><br />
Process exited with code 255.