3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function calc($n, &$a) { $b = 18; while($n) { $a = $b * $b * $b * $b; $n--; } } $n = 5000000; $a = 0; $start = microtime(true); calc($n, $a); $end = microtime(true); echo "$a\n"; printf("%.6f seconds\n", $end - $start);
based on 5am5f
Output for 7.1.0
104976 0.147897 seconds
Output for 7.0.14
104976 -0.141789 seconds
Output for 7.0.10
104976 0.107265 seconds
Output for 7.0.9
104976 0.102348 seconds
Output for 7.0.8
104976 0.100626 seconds
Output for 7.0.7
104976 0.105269 seconds
Output for 7.0.6
104976 0.126994 seconds
Output for 7.0.5
104976 0.123435 seconds
Output for 7.0.4
104976 0.125854 seconds
Output for 7.0.3
104976 0.100917 seconds
Output for 7.0.2
104976 0.092554 seconds
Output for 7.0.1
104976 0.120582 seconds
Output for 7.0.0
104976 0.098315 seconds
Output for hhvm-3.12.0
Notice: File could not be loaded: /in/BKltl
Process exited with code 255.
Output for hhvm-3.10.0
104976 1.566288 seconds
Output for 5.6.28
104976 0.213775 seconds
Output for 5.6.25
104976 0.200374 seconds
Output for 5.6.24
104976 0.172451 seconds
Output for 5.6.23
104976 0.183313 seconds
Output for 5.6.22
104976 0.197957 seconds
Output for 5.6.21
104976 0.207009 seconds
Output for 5.6.20
104976 0.184026 seconds
Output for 5.6.19
104976 0.178093 seconds
Output for 5.6.18
104976 0.213456 seconds
Output for 5.6.17
104976 0.191812 seconds
Output for 5.6.16
104976 0.253564 seconds
Output for 5.6.15
104976 0.177085 seconds
Output for 5.6.14
104976 0.205381 seconds
Output for 5.6.13
104976 0.191115 seconds
Output for 5.6.12
104976 0.204851 seconds
Output for 5.6.11
104976 0.184764 seconds
Output for 5.6.10
104976 0.182357 seconds
Output for 5.6.9
104976 0.193393 seconds
Output for 5.6.8
104976 0.204924 seconds
Output for 5.6.7
104976 0.229379 seconds
Output for 5.6.6
104976 0.185381 seconds
Output for 5.6.5
104976 0.210556 seconds
Output for 5.6.4
104976 0.204681 seconds
Output for 5.6.3
104976 0.198409 seconds
Output for 5.6.2
104976 0.200593 seconds
Output for 5.6.1
104976 0.176710 seconds
Output for 5.6.0
104976 0.206548 seconds
Output for 5.5.38
104976 0.178911 seconds
Output for 5.5.37
104976 0.181299 seconds
Output for 5.5.36
104976 0.184882 seconds
Output for 5.5.35
104976 0.213934 seconds
Output for 5.5.34
104976 0.177367 seconds
Output for 5.5.33
104976 0.203629 seconds
Output for 5.5.32
104976 0.198778 seconds
Output for 5.5.31
104976 0.185416 seconds
Output for 5.5.30
104976 0.213751 seconds
Output for 5.5.29
104976 0.210751 seconds
Output for 5.5.28
104976 0.176374 seconds
Output for 5.5.27
104976 0.208422 seconds
Output for 5.5.26
104976 0.177858 seconds
Output for 5.5.25
104976 0.179097 seconds
Output for 5.5.24
104976 0.197857 seconds
Output for 5.5.23
104976 0.211737 seconds
Output for 5.5.22
104976 0.211461 seconds
Output for 5.5.21
104976 0.184204 seconds
Output for 5.5.20
104976 0.210498 seconds
Output for 5.5.19
104976 0.193179 seconds
Output for 5.5.18
104976 0.186454 seconds
Output for 5.5.16
104976 0.175096 seconds
Output for 5.5.15
104976 0.179629 seconds
Output for 5.5.14
104976 0.174581 seconds
Output for 5.5.13
104976 0.182759 seconds
Output for 5.5.12
104976 0.171248 seconds
Output for 5.5.11
104976 0.211271 seconds
Output for 5.5.10
104976 0.178597 seconds
Output for 5.5.9
104976 0.152395 seconds
Output for 5.5.8
104976 0.174385 seconds
Output for 5.5.7
104976 0.145128 seconds
Output for 5.5.6
104976 0.155347 seconds
Output for 5.5.5
104976 0.148774 seconds
Output for 5.5.4
104976 0.145223 seconds
Output for 5.5.3
104976 0.174167 seconds
Output for 5.5.2
104976 0.146748 seconds
Output for 5.5.1
104976 0.146060 seconds
Output for 5.5.0
104976 0.145617 seconds
Output for 5.4.45
104976 0.144893 seconds
Output for 5.4.44
104976 0.195776 seconds
Output for 5.4.43
104976 0.200052 seconds
Output for 5.4.42
104976 0.219797 seconds
Output for 5.4.41
104976 0.181141 seconds
Output for 5.4.40
104976 0.198817 seconds
Output for 5.4.39
104976 0.205099 seconds
Output for 5.4.38
104976 0.169500 seconds
Output for 5.4.37
104976 0.177318 seconds
Output for 5.4.36
104976 0.213122 seconds
Output for 5.4.35
104976 0.194580 seconds
Output for 5.4.34
104976 0.171550 seconds
Output for 5.4.32
104976 0.182904 seconds
Output for 5.4.31
104976 0.173364 seconds
Output for 5.4.30
104976 0.185044 seconds
Output for 5.4.29
104976 0.208963 seconds
Output for 5.4.28
104976 0.185285 seconds
Output for 5.4.27
104976 0.209466 seconds
Output for 5.4.26
104976 0.173547 seconds
Output for 5.4.25
104976 0.172284 seconds
Output for 5.4.24
104976 0.145204 seconds
Output for 5.4.23
104976 0.141920 seconds
Output for 5.4.22
104976 0.144621 seconds
Output for 5.4.21
104976 0.145336 seconds
Output for 5.4.20
104976 0.171467 seconds
Output for 5.4.19
104976 0.150266 seconds
Output for 5.4.18
104976 0.172662 seconds
Output for 5.4.17
104976 0.172242 seconds
Output for 5.4.16
104976 0.227142 seconds
Output for 5.4.15
104976 0.173832 seconds
Output for 5.4.14
104976 0.171733 seconds
Output for 5.4.13
104976 0.256826 seconds
Output for 5.4.12
104976 0.212392 seconds
Output for 5.4.11
104976 0.182814 seconds
Output for 5.4.10
104976 0.187876 seconds
Output for 5.4.9
104976 0.184064 seconds
Output for 5.4.8
104976 0.199230 seconds
Output for 5.4.7
104976 0.202525 seconds
Output for 5.4.6
104976 0.196057 seconds
Output for 5.4.5
104976 0.192199 seconds
Output for 5.4.4
104976 0.191015 seconds
Output for 5.4.3
104976 0.209668 seconds
Output for 5.4.2
104976 0.200790 seconds
Output for 5.4.1
104976 0.188586 seconds
Output for 5.4.0
104976 0.196156 seconds
Output for 5.3.29
104976 0.289414 seconds
Output for 5.3.28
104976 0.243268 seconds
Output for 5.3.27
104976 0.224102 seconds
Output for 5.3.26
104976 0.232113 seconds
Output for 5.3.25
104976 0.305156 seconds
Output for 5.3.24
104976 0.258877 seconds
Output for 5.3.23
104976 0.267891 seconds
Output for 5.3.22
104976 0.281704 seconds
Output for 5.3.21
104976 0.312254 seconds
Output for 5.3.20
104976 0.299769 seconds
Output for 5.3.19
104976 0.294650 seconds
Output for 5.3.18
104976 0.285677 seconds
Output for 5.3.17
104976 0.287276 seconds
Output for 5.3.16
104976 0.287736 seconds
Output for 5.3.15
104976 0.268438 seconds
Output for 5.3.14
104976 0.276719 seconds
Output for 5.3.13
104976 0.293941 seconds
Output for 5.3.12
104976 0.259779 seconds
Output for 5.3.11
104976 0.290564 seconds
Output for 5.3.10
104976 0.321282 seconds
Output for 5.3.9
104976 0.291785 seconds
Output for 5.3.8
104976 0.311405 seconds
Output for 5.3.7
104976 0.285908 seconds
Output for 5.3.6
104976 0.311087 seconds
Output for 5.3.5
104976 0.299886 seconds
Output for 5.3.4
104976 0.287760 seconds
Output for 5.3.3
104976 0.329695 seconds
Output for 5.3.2
104976 0.297759 seconds
Output for 5.3.1
104976 0.323291 seconds
Output for 5.3.0
104976 0.300518 seconds
Output for 5.2.17
104976 0.354057 seconds
Output for 5.2.16
104976 0.374756 seconds
Output for 5.2.15
104976 0.375553 seconds
Output for 5.2.14
104976 0.411971 seconds
Output for 5.2.13
104976 0.373258 seconds
Output for 5.2.12
104976 0.377398 seconds
Output for 5.2.11
104976 0.344668 seconds
Output for 5.2.10
104976 0.371810 seconds
Output for 5.2.9
104976 0.395239 seconds
Output for 5.2.8
104976 0.392752 seconds
Output for 5.2.7
104976 0.344978 seconds
Output for 5.2.6
104976 0.397648 seconds
Output for 5.2.5
104976 0.294487 seconds
Output for 5.2.4
104976 0.353213 seconds
Output for 5.2.3
104976 0.372645 seconds
Output for 5.2.2
104976 0.431813 seconds
Output for 5.2.1
104976 0.284356 seconds
Output for 5.2.0
104976 0.329502 seconds
Output for 5.1.6
104976 0.287377 seconds
Output for 5.1.5
104976 0.277882 seconds
Output for 5.1.4
104976 0.358968 seconds
Output for 5.1.3
104976 0.332356 seconds
Output for 5.1.2
104976 0.371066 seconds
Output for 5.1.1
104976 0.402407 seconds
Output for 5.1.0
104976 0.330219 seconds
Output for 5.0.5
104976 1.160471 seconds
Output for 5.0.4
104976 1.012713 seconds
Output for 5.0.3
104976 1.085370 seconds
Output for 5.0.2
104976 1.057732 seconds
Output for 5.0.1
104976 0.913705 seconds
Output for 5.0.0
104976 1.098212 seconds
Output for 4.4.9
104976 0.067882 seconds
Output for 4.4.8
104976 0.108063 seconds
Output for 4.4.7
104976 0.117422 seconds
Output for 4.4.6
104976 0.921501 seconds
Output for 4.4.5
104976 0.089402 seconds
Output for 4.4.4
104976 0.079026 seconds
Output for 4.4.3
104976 0.930363 seconds
Output for 4.4.2
104976 0.076213 seconds
Output for 4.4.1
104976 0.132735 seconds
Output for 4.4.0
104976 0.115546 seconds
Output for 4.3.11
104976 0.112487 seconds
Output for 4.3.10
104976 0.079897 seconds
Output for 4.3.9
104976 0.160331 seconds
Output for 4.3.8
104976 0.124928 seconds
Output for 4.3.7
104976 0.005433 seconds
Output for 4.3.6
104976 0.020315 seconds
Output for 4.3.5
104976 0.995029 seconds
Output for 4.3.4
104976 0.927414 seconds
Output for 4.3.3
104976 0.922363 seconds
Output for 4.3.2
104976 0.882015 seconds
Output for 4.3.1
104976 0.895614 seconds
Output for 4.3.0
104976 0.906168 seconds