3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(); $i = 1000; while ($i--) { //do stuff } $end = microtime(); echo 'Took ' . $end - $start . ' seconds';
Output for 7.1.0
Warning: A non-numeric value encountered in /in/lFJrQ on line 12 Notice: A non well formed numeric value encountered in /in/lFJrQ on line 12 -0.006212 seconds
Output for 7.0.14
-0.003745 seconds
Output for 7.0.12
-0.003861 seconds
Output for 7.0.6
-0.248179 seconds
Output for 7.0.5
-0.549814 seconds
Output for 7.0.4
-0.365984 seconds
Output for 7.0.3
-0.206816 seconds
Output for 7.0.2
-0.325506 seconds
Output for 7.0.1
-0.085233 seconds
Output for 7.0.0
-0.029014 seconds
Output for 5.6.28
-0.004524 seconds
Output for 5.6.21
-0.42117 seconds
Output for 5.6.20
-0.925183 seconds
Output for 5.6.19
-0.584498 seconds
Output for 5.6.18
-0.198939 seconds
Output for 5.6.17
-0.787879 seconds
Output for 5.6.16
-0.317562 seconds
Output for 5.6.15
-0.807136 seconds
Output for 5.6.14
-0.344861 seconds
Output for 5.6.13
-0.607977 seconds
Output for 5.6.12
-0.649102 seconds
Output for 5.6.11
-0.170757 seconds
Output for 5.6.10
-0.232348 seconds
Output for 5.6.9
-0.819687 seconds
Output for 5.6.8
-0.396334 seconds
Output for 5.6.7
-0.559477 seconds
Output for 5.5.35
-0.236806 seconds
Output for 5.5.34
-0.02403 seconds
Output for 5.5.33
-0.271825 seconds
Output for 5.5.32
-0.448922 seconds
Output for 5.5.31
-0.998591 seconds
Output for 5.5.30
-0.824962 seconds
Output for 5.5.29
-0.759733 seconds
Output for 5.5.28
-0.916896 seconds
Output for 5.5.27
-0.352448 seconds
Output for 5.5.26
-0.557381 seconds
Output for 5.5.25
-0.053237 seconds
Output for 5.5.24
-0.680971 seconds
Output for 5.4.45
-0.150777 seconds
Output for 5.4.44
-0.741155 seconds
Output for 5.4.43
-0.667214 seconds
Output for 5.4.42
-0.821477 seconds
Output for 5.4.41
-0.750266 seconds
Output for 5.4.40
-0.396021 seconds
Output for 5.4.39
-0.956845 seconds
Output for 5.4.38
-0.353055 seconds
Output for 5.4.37
-0.038213 seconds
Output for 5.4.36
-0.536409 seconds
Output for 5.4.35
-0.076711 seconds
Output for 5.4.34
-0.601901 seconds
Output for 5.4.32
-0.476203 seconds
Output for 5.4.31
-0.833744 seconds
Output for 5.4.30
-0.334859 seconds
Output for 5.4.29
-0.505781 seconds
Output for 5.4.28
-0.872809 seconds
Output for 5.4.27
-0.194838 seconds
Output for 5.4.26
-0.493917 seconds
Output for 5.4.25
-0.026088 seconds
Output for 5.4.24
-0.394485 seconds
Output for 5.4.23
-0.591653 seconds
Output for 5.4.22
-0.25453 seconds
Output for 5.4.21
-0.397199 seconds
Output for 5.4.20
-0.713885 seconds
Output for 5.4.19
-0.202368 seconds
Output for 5.4.18
-0.498105 seconds
Output for 5.4.17
-0.035115 seconds
Output for 5.4.16
-0.475171 seconds
Output for 5.4.15
-0.990055 seconds
Output for 5.4.14
-0.126924 seconds
Output for 5.4.13
-0.4143 seconds
Output for 5.4.12
-0.703267 seconds
Output for 5.4.11
-0.112867 seconds
Output for 5.4.10
-0.398014 seconds
Output for 5.4.9
-0.543738 seconds
Output for 5.4.8
-0.959099 seconds
Output for 5.4.7
-0.241043 seconds
Output for 5.4.6
-0.377864 seconds
Output for 5.4.5
-0.791401 seconds
Output for 5.4.4
-0.065141 seconds
Output for 5.4.3
-0.198547 seconds
Output for 5.4.2
-0.61939 seconds
Output for 5.4.1
-0.887595 seconds
Output for 5.4.0
-0.038379 seconds
Output for 5.3.29
-0.656155 seconds
Output for 5.3.28
-0.917977 seconds
Output for 5.3.27
-0.856029 seconds
Output for 5.3.26
-0.666449 seconds
Output for 5.3.25
-0.807275 seconds
Output for 5.3.24
-0.281168 seconds
Output for 5.3.23
-0.553413 seconds
Output for 5.3.22
-0.842524 seconds
Output for 5.3.21
-0.978814 seconds
Output for 5.3.20
-0.246284 seconds
Output for 5.3.19
-0.672665 seconds
Output for 5.3.18
-0.81384 seconds
Output for 5.3.17
-0.095309 seconds
Output for 5.3.16
-0.512131 seconds
Output for 5.3.15
-0.647361 seconds
Output for 5.3.14
-0.92885 seconds
Output for 5.3.13
-0.33617 seconds
Output for 5.3.12
-0.487614 seconds
Output for 5.3.11
-0.754859 seconds
Output for 5.3.10
-0.172498 seconds
Output for 5.3.9
-0.307521 seconds
Output for 5.3.8
-0.51361 seconds
Output for 5.3.7
-0.657753 seconds
Output for 5.3.6
-0.791175 seconds
Output for 5.3.5
-0.921556 seconds
Output for 5.3.4
-0.317068 seconds
Output for 5.3.3
-0.582465 seconds
Output for 5.3.2
-0.874062 seconds
Output for 5.3.1
-0.303632 seconds
Output for 5.3.0
-0.619479 seconds
Output for 5.2.17
-0.056149 seconds
Output for 5.2.16
-0.183283 seconds
Output for 5.2.15
-0.440333 seconds
Output for 5.2.14
-0.709237 seconds
Output for 5.2.13
-0.016312 seconds
Output for 5.2.12
-0.156183 seconds
Output for 5.2.11
-0.450716 seconds
Output for 5.2.10
-0.772634 seconds
Output for 5.2.9
-0.914668 seconds
Output for 5.2.8
-0.080464 seconds
Output for 5.2.7
-0.22671 seconds
Output for 5.2.6
-0.478257 seconds
Output for 5.2.5
-0.828271 seconds
Output for 5.2.4
-0.98683 seconds
Output for 5.2.3
-0.133163 seconds
Output for 5.2.2
-0.2682 seconds
Output for 5.2.1
-0.824295 seconds
Output for 5.2.0
-0.968756 seconds
Output for 5.1.6
-0.139847 seconds
Output for 5.1.5
-0.432059 seconds
Output for 5.1.4
-0.699379 seconds
Output for 5.1.3
-0.854476 seconds
Output for 5.1.2
-0.01122 seconds
Output for 5.1.1
-0.289218 seconds
Output for 5.1.0
-0.435199 seconds
Output for 5.0.5
-0.722596 seconds
Output for 5.0.4
-0.010365 seconds
Output for 5.0.3
-0.296399 seconds
Output for 5.0.2
-0.554184 seconds
Output for 5.0.1
-0.827302 seconds
Output for 5.0.0
-0.992883 seconds
Output for 4.4.9
-0.339389 seconds
Output for 4.4.8
-0.611938 seconds
Output for 4.4.7
-0.397977 seconds
Output for 4.4.6
-0.524706 seconds
Output for 4.4.5
-0.664072 seconds
Output for 4.4.4
-0.295277 seconds
Output for 4.4.3
-0.552386 seconds
Output for 4.4.2
-0.1284 seconds
Output for 4.4.1
-0.564952 seconds
Output for 4.4.0
-0.874619 seconds
Output for 4.3.11
-0.135638 seconds
Output for 4.3.10
-0.428602 seconds
Output for 4.3.9
-0.693319 seconds
Output for 4.3.8
-0.148232 seconds
Output for 4.3.7
-0.258456 seconds
Output for 4.3.6
-0.39545 seconds
Output for 4.3.5
-0.509297 seconds
Output for 4.3.4
-0.664878 seconds
Output for 4.3.3
-0.809231 seconds
Output for 4.3.2
-0.952248 seconds
Output for 4.3.1
-0.074525 seconds
Output for 4.3.0
-0.201904 seconds