3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $startMath = microtime(); for ($i = 0; $i < 10000; $i++) $var = 24*3600*365; $endMath = microtime(); $timeMath = $endMath - $startMath; echo 'Math took : ',$timeMath,'ms'; $startNoMath = microtime(); for ($i = 0; $i < 10000; $i++) $var = 31536000; $endNoMath = microtime(); $timeNoMath = $endNoMath - $startNoMath; echo 'No math took : ',$timeNoMath,'ms';
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/Jrahe on line 6 Notice: A non well formed numeric value encountered in /in/Jrahe on line 6 Math took : 0.000184ms Notice: A non well formed numeric value encountered in /in/Jrahe on line 13 Notice: A non well formed numeric value encountered in /in/Jrahe on line 13 No math took : 0.000191ms
Output for 7.0.14
Math took : 0.000178msNo math took : 0.000171ms
Output for 7.0.11
Math took : 0.000143msNo math took : 0.000151ms
Output for 7.0.10
Math took : 0.000117msNo math took : 0.000127ms
Output for 7.0.9
Math took : 0.000137msNo math took : 0.000141ms
Output for 7.0.8
Math took : 0.000155msNo math took : 0.000161ms
Output for 7.0.7
Math took : 0.000284msNo math took : 0.000276ms
Output for 7.0.6
Math took : 0.000117msNo math took : 0.000119ms
Output for 7.0.5
Math took : 0.000139msNo math took : 0.000132ms
Output for 7.0.4
Math took : 0.000298msNo math took : 0.000286ms
Output for 7.0.3
Math took : 0.000147msNo math took : 0.00014ms
Output for 7.0.2
Math took : 0.000149msNo math took : 0.000143ms
Output for 7.0.1
Math took : 0.000166msNo math took : 0.000153ms
Output for 7.0.0
Math took : 0.000193msNo math took : 0.000187ms
Output for hhvm-3.13.2
Math took : 0.000578msNo math took : 0.00065599999999999ms
Output for hhvm-3.12.0
Math took : 0.00059300000000001msNo math took : 0.00054799999999999ms
Output for hhvm-3.10.0
Math took : 0.00088099999999999msNo math took : 0.00093699999999999ms
Output for 5.6.28
Math took : 0.001117msNo math took : 0.00097ms
Output for 5.6.26
Math took : 0.000541msNo math took : 0.000413ms
Output for 5.6.25
Math took : 0.000333msNo math took : 0.00025ms
Output for 5.6.24
Math took : 0.00037msNo math took : 0.000294ms
Output for 5.6.23
Math took : 0.000378msNo math took : 0.000284ms
Output for 5.6.22
Math took : 0.000375msNo math took : 0.000284ms
Output for 5.6.21
Math took : 0.000451msNo math took : 0.000342ms
Output for 5.6.20
Math took : 0.000568msNo math took : 0.000433ms
Output for 5.6.19
Math took : 0.00084msNo math took : 0.000635ms
Output for 5.6.18
Math took : 0.000421msNo math took : 0.000335ms
Output for 5.6.17
Math took : 0.000552msNo math took : 0.000412ms
Output for 5.6.16
Math took : 0.000494msNo math took : 0.000405ms
Output for 5.6.15
Math took : 0.000508msNo math took : 0.000374ms
Output for 5.6.14
Math took : 0.000424msNo math took : 0.000265ms
Output for 5.6.13
Math took : 0.000443msNo math took : 0.000329ms
Output for 5.6.12
Math took : 0.000328msNo math took : 0.000249ms
Output for 5.6.11
Math took : 0.00049msNo math took : 0.000374ms
Output for 5.6.10
Math took : 0.000454msNo math took : 0.000345ms
Output for 5.6.9
Math took : 0.000422msNo math took : 0.000316ms
Output for 5.6.8
Math took : 0.000543msNo math took : 0.000391ms
Output for 5.6.7
Math took : 0.000516msNo math took : 0.00039ms
Output for 5.6.6
Math took : 0.00033msNo math took : 0.00025ms
Output for 5.6.5
Math took : 0.000329msNo math took : 0.00025ms
Output for 5.6.4
Math took : 0.000329msNo math took : 0.000249ms
Output for 5.6.3
Math took : 0.000339msNo math took : 0.000277ms
Output for 5.6.2
Math took : 0.000332msNo math took : 0.000249ms
Output for 5.6.1
Math took : 0.000353msNo math took : 0.000272ms
Output for 5.6.0
Math took : 0.000327msNo math took : 0.000254ms
Output for 5.5.38
Math took : 0.000451msNo math took : 0.000354ms
Output for 5.5.37
Math took : 0.000374msNo math took : 0.000287ms
Output for 5.5.36
Math took : 0.000553msNo math took : 0.000466ms
Output for 5.5.35
Math took : 0.00055msNo math took : 0.000435ms
Output for 5.5.34
Math took : 0.000558msNo math took : 0.000451ms
Output for 5.5.33
Math took : 0.000529msNo math took : 0.000383ms
Output for 5.5.32
Math took : 0.000522msNo math took : 0.000444ms
Output for 5.5.31
Math took : 0.000471msNo math took : 0.000355ms
Output for 5.5.30
Math took : 0.000497msNo math took : 0.000371ms
Output for 5.5.29
Math took : 0.000579msNo math took : 0.000423ms
Output for 5.5.28
Math took : 0.000541msNo math took : 0.000441ms
Output for 5.5.27
Math took : 0.000639msNo math took : 0.000425ms
Output for 5.5.26
Math took : 0.000519msNo math took : 0.000389ms
Output for 5.5.25
Math took : 0.000569msNo math took : 0.000431ms
Output for 5.5.24
Math took : 0.000451msNo math took : 0.000341ms
Output for 5.5.23
Math took : 0.000332msNo math took : 0.000273ms
Output for 5.5.22
Math took : 0.000336msNo math took : 0.000247ms
Output for 5.5.21
Math took : 0.000386msNo math took : 0.000317ms
Output for 5.5.20
Math took : 0.000382msNo math took : 0.000281ms
Output for 5.5.19
Math took : 0.00046msNo math took : 0.000364ms
Output for 5.5.18
Math took : 0.000329msNo math took : 0.000264ms
Output for 5.5.16
Math took : 0.000546msNo math took : 0.000424ms
Output for 5.5.15
Math took : 0.000549msNo math took : 0.000422ms
Output for 5.5.14
Math took : 0.000337msNo math took : 0.000248ms
Output for 5.5.13
Math took : 0.00053msNo math took : 0.000428ms
Output for 5.5.12
Math took : 0.000608msNo math took : 0.000414ms
Output for 5.5.11
Math took : 0.000388msNo math took : 0.000209ms
Output for 5.5.10
Math took : 0.000327msNo math took : 0.000262ms
Output for 5.5.9
Math took : 0.000338msNo math took : 0.000269ms
Output for 5.5.8
Math took : 0.000352msNo math took : 0.000224ms
Output for 5.5.7
Math took : 0.000342msNo math took : 0.000247ms
Output for 5.5.6
Math took : 0.000328msNo math took : 0.000257ms
Output for 5.5.2, 5.5.5
Math took : 0.000328msNo math took : 0.000248ms
Output for 5.5.4
Math took : 0.000328msNo math took : 0.000247ms
Output for 5.5.3
Math took : 0.000342msNo math took : 0.000264ms
Output for 5.5.1
Math took : 0.000327msNo math took : 0.000248ms
Output for 5.5.0
Math took : 0.000286msNo math took : 0.000296ms
Output for 5.4.45
Math took : 0.000559msNo math took : 0.000447ms
Output for 5.4.44
Math took : 0.000558msNo math took : 0.000431ms
Output for 5.4.43
Math took : 0.00061msNo math took : 0.000435ms
Output for 5.4.42
Math took : 0.000535msNo math took : 0.000403ms
Output for 5.4.41
Math took : 0.000585msNo math took : 0.000463ms
Output for 5.4.40
Math took : 0.000414msNo math took : 0.00031ms
Output for 5.4.39
Math took : 0.000568msNo math took : 0.000423ms
Output for 5.4.38
Math took : 0.000374msNo math took : 0.000276ms
Output for 5.4.37
Math took : 0.000453msNo math took : 0.000332ms
Output for 5.4.36
Math took : 0.000527msNo math took : 0.000403ms
Output for 5.4.35
Math took : 0.000372msNo math took : 0.000266ms
Output for 5.4.34
Math took : 0.000483msNo math took : 0.00036ms
Output for 5.4.32
Math took : 0.000527msNo math took : 0.000412ms
Output for 5.4.31
Math took : 0.000595msNo math took : 0.00045ms
Output for 5.4.30
Math took : 0.000345msNo math took : 0.000252ms
Output for 5.4.29
Math took : 0.000457msNo math took : 0.000355ms
Output for 5.4.28
Math took : 0.000636msNo math took : 0.000474ms
Output for 5.4.27
Math took : 0.000339msNo math took : 0.000255ms
Output for 5.4.26
Math took : 0.000398msNo math took : 0.000255ms
Output for 5.4.25
Math took : 0.000385msNo math took : 0.000255ms
Output for 5.4.24
Math took : 0.000842msNo math took : 0.000622ms
Output for 5.4.23
Math took : 0.000343msNo math took : 0.00022ms
Output for 5.4.22
Math took : 0.000429msNo math took : 0.000321ms
Output for 5.4.21
Math took : 0.000338msNo math took : 0.000253ms
Output for 5.4.20
Math took : 0.000339msNo math took : 0.000257ms
Output for 5.4.19
Math took : 0.000343msNo math took : 0.000254ms
Output for 5.4.18
Math took : 0.000289msNo math took : 0.000208ms
Output for 5.4.17
Math took : 0.000436msNo math took : 0.000329ms
Output for 5.4.16
Math took : 0.000277msNo math took : 0.000207ms
Output for 5.4.15
Math took : 0.000365msNo math took : 0.000278ms
Output for 5.4.14
Math took : 0.000287msNo math took : 0.000212ms
Output for 5.4.13
Math took : 0.000286msNo math took : 0.000221ms
Output for 5.4.12
Math took : 0.000514msNo math took : 0.000389ms
Output for 5.4.11
Math took : 0.000318msNo math took : 0.000238ms
Output for 5.4.10
Math took : 0.000428msNo math took : 0.000321ms
Output for 5.4.9
Math took : 0.000336msNo math took : 0.000252ms
Output for 5.4.8
Math took : 0.000337msNo math took : 0.000264ms
Output for 5.4.7
Math took : 0.000533msNo math took : 0.000394ms
Output for 5.4.6
Math took : 0.000337msNo math took : 0.000292ms
Output for 5.4.5
Math took : 0.000337msNo math took : 0.000252ms
Output for 5.4.4
Math took : 0.000336msNo math took : 0.000251ms
Output for 5.4.3
Math took : 0.00037msNo math took : 0.000253ms
Output for 5.4.2
Math took : 0.000339msNo math took : 0.000268ms
Output for 5.4.1
Math took : 0.000337msNo math took : 0.000261ms
Output for 5.4.0
Math took : 0.000343msNo math took : 0.00027ms
Output for 5.3.29
Math took : 0.000698msNo math took : 0.000578ms
Output for 5.3.28
Math took : 0.000562msNo math took : 0.000406ms
Output for 5.3.27
Math took : 0.000426msNo math took : 0.000318ms
Output for 5.3.26
Math took : 0.000476msNo math took : 0.000343ms
Output for 5.3.25
Math took : 0.0005msNo math took : 0.000353ms
Output for 5.3.24
Math took : 0.000413msNo math took : 0.000292ms
Output for 5.3.23
Math took : 0.000414msNo math took : 0.000299ms
Output for 5.3.22
Math took : 0.000509msNo math took : 0.000366ms
Output for 5.3.21
Math took : 0.00056msNo math took : 0.000384ms
Output for 5.3.20
Math took : 0.000508msNo math took : 0.000386ms
Output for 5.3.19
Math took : 0.000532msNo math took : 0.000381ms
Output for 5.3.18
Math took : 0.000532msNo math took : 0.000371ms
Output for 5.3.17
Math took : 0.000737msNo math took : 0.000497ms
Output for 5.3.16
Math took : 0.000511msNo math took : 0.000364ms
Output for 5.3.15
Math took : 0.000508msNo math took : 0.000355ms
Output for 5.3.14
Math took : 0.000517msNo math took : 0.000353ms
Output for 5.3.13
Math took : 0.000672msNo math took : 0.000383ms
Output for 5.3.12
Math took : 0.000564msNo math took : 0.000355ms
Output for 5.3.11
Math took : 0.000521msNo math took : 0.000357ms
Output for 5.3.10
Math took : 0.000523msNo math took : 0.000356ms
Output for 5.3.9
Math took : 0.000518msNo math took : 0.000362ms
Output for 5.3.8
Math took : 0.000526msNo math took : 0.000374ms
Output for 5.3.7
Math took : 0.000517msNo math took : 0.000346ms
Output for 5.3.6
Math took : 0.000526msNo math took : 0.000376ms
Output for 5.3.5
Math took : 0.000568msNo math took : 0.000401ms
Output for 5.3.4
Math took : 0.000523msNo math took : 0.000364ms
Output for 5.3.3
Math took : 0.000926msNo math took : 0.000679ms
Output for 5.3.2
Math took : 0.000858msNo math took : 0.000557ms
Output for 5.3.1
Math took : 0.000748msNo math took : 0.000535ms
Output for 5.3.0
Math took : 0.000863msNo math took : 0.00059ms
Output for 5.2.17
Math took : 0.000678msNo math took : 0.00049ms
Output for 5.2.16
Math took : 0.00083msNo math took : 0.000616ms
Output for 5.2.15
Math took : 0.001254msNo math took : 0.000887ms
Output for 5.2.14
Math took : 0.000871msNo math took : 0.00047ms
Output for 5.2.13
Math took : 0.001227msNo math took : 0.000874ms
Output for 5.2.12
Math took : 0.001227msNo math took : 0.000845ms
Output for 5.2.11
Math took : 0.001353msNo math took : 0.000862ms
Output for 5.2.10
Math took : 0.001046msNo math took : 0.00077ms
Output for 5.2.9
Math took : 0.001261msNo math took : 0.000944ms
Output for 5.2.8
Math took : 0.001104msNo math took : 0.000801ms
Output for 5.2.7
Math took : 0.001287msNo math took : 0.000894ms
Output for 5.2.6
Math took : 0.000845msNo math took : 0.000742ms
Output for 5.2.5
Math took : 0.000993msNo math took : 0.000724ms
Output for 5.2.4
Math took : 0.001241msNo math took : 0.000879ms
Output for 5.2.3
Math took : 0.001207msNo math took : 0.0009ms
Output for 5.2.2
Math took : 0.001237msNo math took : 0.00093ms
Output for 5.2.1
Math took : 0.001115msNo math took : 0.000829ms
Output for 5.2.0
Math took : 0.001219msNo math took : 0.000912ms
Output for 5.1.6
Math took : 0.000833msNo math took : 0.000632ms
Output for 5.1.5
Math took : 0.001124msNo math took : 0.000831ms
Output for 5.1.4
Math took : 0.001151msNo math took : 0.000833ms
Output for 5.1.3
Math took : 0.001242msNo math took : 0.000792ms
Output for 5.1.2
Math took : 0.001156msNo math took : 0.000851ms
Output for 5.1.1
Math took : 0.001028msNo math took : 0.000788ms
Output for 5.1.0
Math took : 0.000682msNo math took : 0.000489ms
Output for 5.0.5
Math took : 0.002718msNo math took : 0.002149ms
Output for 5.0.4
Math took : 0.002287msNo math took : 0.00187ms
Output for 5.0.3
Math took : 0.001414msNo math took : 0.001302ms
Output for 5.0.2
Math took : 0.001364msNo math took : 0.001112ms
Output for 5.0.1
Math took : 0.002562msNo math took : 0.002066ms
Output for 5.0.0
Math took : 0.002403msNo math took : 0.001933ms
Output for 4.4.9
Math took : 0.002724msNo math took : 0.002445ms
Output for 4.4.8
Math took : 0.002278msNo math took : 0.001518ms
Output for 4.4.7
Math took : 0.002598msNo math took : 0.002097ms
Output for 4.4.6
Math took : 0.002103msNo math took : 0.001802ms
Output for 4.4.5
Math took : 0.002888msNo math took : 0.002276ms
Output for 4.4.4
Math took : 0.002671msNo math took : 0.002101ms
Output for 4.4.3
Math took : 0.002863msNo math took : 0.002263ms
Output for 4.4.2
Math took : 0.002905msNo math took : 0.002358ms
Output for 4.4.1
Math took : 0.001791msNo math took : 0.001484ms
Output for 4.4.0
Math took : 0.002079msNo math took : 0.001702ms
Output for 4.3.11
Math took : 0.002903msNo math took : 0.002382ms
Output for 4.3.10
Math took : 0.001339msNo math took : 0.001081ms
Output for 4.3.9
Math took : 0.0015msNo math took : 0.001231ms
Output for 4.3.8
Math took : 0.002806msNo math took : 0.002183ms
Output for 4.3.7
Math took : 0.002812msNo math took : 0.002314ms
Output for 4.3.6
Math took : 0.003469msNo math took : 0.002324ms
Output for 4.3.5
Math took : 0.002836msNo math took : 0.002349ms
Output for 4.3.4
Math took : 0.002377msNo math took : 0.001983ms
Output for 4.3.3
Math took : 0.002984msNo math took : 0.002112ms
Output for 4.3.2
Math took : 0.002159msNo math took : 0.001761ms
Output for 4.3.1
Math took : 0.002471msNo math took : 0.002089ms
Output for 4.3.0
Math took : 0.002512msNo math took : 0.002102ms