3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = ""; for($i = 0; $i < 1024; $i++) $s = $s . ($i % 10); $start = microtime(); for($i = 0; $i < 10000; $i++) strpos($s, "abcdef"); $end = microtime(); echo "Duration: " . ($end - $start) . " s\n"; ?>
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/eP7Pm on line 13 Notice: A non well formed numeric value encountered in /in/eP7Pm on line 13 Duration: 0.000606 s
Output for 7.0.14
Duration: 0.009902 s
Output for 7.0.10
Duration: 0.007104 s
Output for 7.0.9
Duration: 0.009344 s
Output for 7.0.8
Duration: 0.0085 s
Output for 7.0.7
Duration: 0.008282 s
Output for 7.0.6
Duration: 0.010572 s
Output for 7.0.5
Duration: 0.008946 s
Output for 7.0.4
Duration: 0.008453 s
Output for 7.0.3
Duration: 0.008761 s
Output for 7.0.2
Duration: 0.00995 s
Output for 7.0.1
Duration: 0.007759 s
Output for 7.0.0
Duration: 0.010301 s
Output for hhvm-3.12.0
Duration: 0.001856 s
Output for hhvm-3.10.0
Duration: 0.00212 s
Output for 5.6.28
Duration: 0.003166 s
Output for 5.6.25
Duration: 0.002107 s
Output for 5.6.24
Duration: 0.001714 s
Output for 5.6.23
Duration: 0.001824 s
Output for 5.6.22
Duration: 0.002175 s
Output for 5.6.21
Duration: 0.002082 s
Output for 5.6.20
Duration: 0.00171 s
Output for 5.6.19
Duration: 0.001557 s
Output for 5.6.18
Duration: 0.001614 s
Output for 5.6.17
Duration: 0.001972 s
Output for 5.3.4, 5.6.16
Duration: 0.002211 s
Output for 5.4.23, 5.6.15
Duration: 0.002184 s
Output for 5.6.14
Duration: 0.002141 s
Output for 5.6.13
Duration: 0.001481 s
Output for 5.6.12
Duration: 0.001939 s
Output for 5.6.11
Duration: 0.001501 s
Output for 5.6.10
Duration: 0.001927 s
Output for 5.6.9
Duration: 0.002116 s
Output for 5.5.0, 5.6.8
Duration: 0.002233 s
Output for 5.6.7
Duration: 0.001882 s
Output for 5.6.6
Duration: 0.002253 s
Output for 5.4.8, 5.6.5
Duration: 0.002342 s
Output for 5.4.41, 5.6.4
Duration: 0.001969 s
Output for 5.6.3
Duration: 0.002043 s
Output for 5.6.2
Duration: 0.002979 s
Output for 5.6.1
Duration: 0.002156 s
Output for 5.6.0
Duration: 0.001688 s
Output for 5.5.38
Duration: 0.001753 s
Output for 5.5.37
Duration: 0.00211 s
Output for 5.5.36
Duration: 0.001832 s
Output for 5.5.35
Duration: 0.001879 s
Output for 5.5.34
Duration: 0.002178 s
Output for 5.5.33
Duration: 0.002065 s
Output for 5.5.32
Duration: 0.002021 s
Output for 5.5.31
Duration: 0.001932 s
Output for 5.5.30
Duration: 0.00178 s
Output for 5.5.29
Duration: 0.002296 s
Output for 5.4.1, 5.5.28
Duration: 0.002185 s
Output for 5.4.35, 5.5.15, 5.5.27
Duration: 0.002188 s
Output for 5.5.26
Duration: 0.002347 s
Output for 5.5.25
Duration: 0.00225 s
Output for 5.5.24
Duration: 0.002311 s
Output for 5.5.23
Duration: 0.004877 s
Output for 5.5.22
Duration: 0.002219 s
Output for 5.5.21
Duration: 0.002084 s
Output for 5.5.20
Duration: 0.00188 s
Output for 5.5.19
Duration: 0.001428 s
Output for 5.5.18
Duration: 0.00209 s
Output for 5.5.16
Duration: 0.002415 s
Output for 5.3.29, 5.5.14
Duration: 0.00236 s
Output for 5.5.13
Duration: 0.002283 s
Output for 5.5.12
Duration: 0.001802 s
Output for 5.5.11
Duration: 0.002159 s
Output for 5.5.10
Duration: 0.002012 s
Output for 5.5.9
Duration: 0.002454 s
Output for 5.5.8
Duration: 0.00205 s
Output for 5.5.7
Duration: 0.002189 s
Output for 5.5.6
Duration: 0.00196 s
Output for 5.5.5
Duration: 0.00198 s
Output for 5.5.3 - 5.5.4
Duration: 0.001514 s
Output for 5.5.2
Duration: 0.001901 s
Output for 5.5.1
Duration: 0.001912 s
Output for 5.4.45
Duration: 0.001597 s
Output for 5.4.44
Duration: 0.002154 s
Output for 5.3.5, 5.4.43
Duration: 0.00227 s
Output for 5.4.42
Duration: 0.001907 s
Output for 5.4.40
Duration: 0.00352 s
Output for 5.4.5, 5.4.39
Duration: 0.002293 s
Output for 5.4.38
Duration: 0.002162 s
Output for 5.4.37
Duration: 0.001943 s
Output for 5.4.36
Duration: 0.001886 s
Output for 5.4.34
Duration: 0.002276 s
Output for 5.4.10, 5.4.32
Duration: 0.002072 s
Output for 5.4.31
Duration: 0.002092 s
Output for 5.4.30
Duration: 0.002322 s
Output for 5.4.29
Duration: 0.002269 s
Output for 5.4.28
Duration: 0.002285 s
Output for 5.4.27
Duration: 0.00193 s
Output for 5.4.26
Duration: 0.001918 s
Output for 5.4.19, 5.4.25
Duration: 0.002104 s
Output for 5.4.24
Duration: 0.002223 s
Output for 5.4.22
Duration: 0.002401 s
Output for 5.4.21
Duration: 0.002137 s
Output for 5.4.20
Duration: 0.001897 s
Output for 5.4.18
Duration: 0.001497 s
Output for 5.4.17
Duration: 0.002035 s
Output for 5.4.16
Duration: 0.002429 s
Output for 5.4.15
Duration: 0.002419 s
Output for 5.4.14
Duration: 0.002315 s
Output for 5.4.13
Duration: 0.002246 s
Output for 5.4.12
Duration: 0.001562 s
Output for 5.4.11
Duration: 0.002392 s
Output for 5.4.9
Duration: 0.002606 s
Output for 5.4.7
Duration: 0.002226 s
Output for 5.4.6
Duration: 0.002425 s
Output for 5.4.4
Duration: 0.002118 s
Output for 5.4.3
Duration: 0.00234 s
Output for 5.4.2
Duration: 0.002139 s
Output for 5.4.0
Duration: 0.002047 s
Output for 5.3.28
Duration: 0.002932 s
Output for 5.3.27
Duration: 0.002889 s
Output for 5.3.26
Duration: 0.002884 s
Output for 5.3.25
Duration: 0.002643 s
Output for 5.3.24
Duration: 0.002649 s
Output for 5.3.23
Duration: 0.002503 s
Output for 5.3.22
Duration: 0.002854 s
Output for 5.3.21
Duration: 0.002562 s
Output for 5.3.20
Duration: 0.002934 s
Output for 5.3.19
Duration: 0.00248 s
Output for 5.3.18
Duration: 0.002486 s
Output for 5.3.17
Duration: 0.00289 s
Output for 5.3.16
Duration: 0.002803 s
Output for 5.3.15
Duration: 0.00251 s
Output for 5.3.14
Duration: 0.00219 s
Output for 5.3.13
Duration: 0.003104 s
Output for 5.3.12
Duration: 0.00247 s
Output for 5.3.11
Duration: 0.003062 s
Output for 5.3.10
Duration: 0.002761 s
Output for 5.3.9
Duration: 0.002038 s
Output for 5.3.8
Duration: 0.003105 s
Output for 5.3.7
Duration: 0.002875 s
Output for 5.3.6
Duration: 0.002358 s
Output for 5.3.3
Duration: 0.002413 s
Output for 5.3.2
Duration: 0.002746 s
Output for 5.3.1
Duration: 0.003084 s
Output for 5.3.0
Duration: 0.002676 s
Output for 5.2.17
Duration: 0.002983 s
Output for 5.2.16
Duration: 0.002749 s
Output for 5.2.15
Duration: 0.002316 s
Output for 5.2.14
Duration: 0.002716 s
Output for 5.2.13
Duration: 0.003517 s
Output for 5.1.5, 5.2.12
Duration: 0.002999 s
Output for 5.2.11
Duration: 0.002876 s
Output for 5.2.10
Duration: 0.00307 s
Output for 5.2.9
Duration: 0.003008 s
Output for 5.2.8
Duration: 0.003228 s
Output for 5.2.7
Duration: 0.002885 s
Output for 5.2.6
Duration: 0.00252 s
Output for 5.2.5
Duration: 0.002482 s
Output for 5.2.4
Duration: 0.002509 s
Output for 5.2.3
Duration: 0.002453 s
Output for 5.2.2
Duration: 0.003333 s
Output for 5.2.1
Duration: 0.002882 s
Output for 5.2.0
Duration: 0.002545 s
Output for 5.1.6
Duration: 0.001642 s
Output for 5.1.4
Duration: 0.002861 s
Output for 5.1.3
Duration: 0.003119 s
Output for 5.1.2
Duration: 0.002579 s
Output for 5.1.1
Duration: 0.003088 s
Output for 5.1.0
Duration: 0.002194 s
Output for 5.0.5
Duration: 0.00423 s
Output for 5.0.4
Duration: 0.005178 s
Output for 5.0.3
Duration: 0.004062 s
Output for 5.0.2
Duration: 0.005024 s
Output for 5.0.1
Duration: 0.004446 s
Output for 5.0.0
Duration: 0.004378 s
Output for 4.4.9
Duration: 0.004381 s
Output for 4.4.8
Duration: 0.005268 s
Output for 4.4.7
Duration: 0.004488 s
Output for 4.4.6
Duration: 0.004119 s
Output for 4.4.5
Duration: 0.004747 s
Output for 4.4.4
Duration: 0.004739 s
Output for 4.4.3
Duration: 0.004224 s
Output for 4.4.2
Duration: 0.005185 s
Output for 4.4.1
Duration: 0.005169 s
Output for 4.4.0
Duration: 0.00425 s
Output for 4.3.11
Duration: 0.004537 s
Output for 4.3.10
Duration: 0.002442 s
Output for 4.3.9
Duration: 0.003747 s
Output for 4.3.8
Duration: 0.004439 s
Output for 4.3.7
Duration: 0.005649 s
Output for 4.3.6
Duration: 0.004856 s
Output for 4.3.5
Duration: 0.005132 s
Output for 4.3.4
Duration: 0.003947 s
Output for 4.3.3
Duration: 0.004954 s
Output for 4.3.2
Duration: 0.005022 s
Output for 4.3.1
Duration: 0.002851 s
Output for 4.3.0
Duration: 0.004863 s