3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = microtime(true); for ($i = 0; $i < 1000000; $i++) { preg_match('/^label-(.+)/', 'label-en_US', $matches); } $time = microtime(true) - $time; echo 'preg_match() took ' . number_format($time, 3) . ' seconds' . "\n"; $time = microtime(true); for ($i = 0; $i < 10000; $i++) { strpos('label', 'label-en_US'); explode('-', 'label-en_US'); } $time = microtime(true) - $time; echo 'explode() took ' . number_format($time, 3) . ' seconds' . "\n";

Abusive script

This script was stopped while abusing our resources

Output for 7.1.6
preg_match() took 0.534 seconds explode() took 0.002 seconds
Output for 7.1.5
preg_match() took 0.607 seconds explode() took 0.003 seconds
Output for 7.1.4
preg_match() took 0.488 seconds explode() took 0.002 seconds
Output for 7.1.3
preg_match() took 0.375 seconds explode() took 0.003 seconds
Output for 7.1.2
preg_match() took 0.449 seconds explode() took 0.002 seconds
Output for 7.1.1
preg_match() took 0.435 seconds explode() took 0.003 seconds
Output for 7.1.0
preg_match() took 0.332 seconds explode() took 0.002 seconds
Output for 7.0.20
preg_match() took 0.646 seconds explode() took 0.004 seconds
Output for 7.0.19
preg_match() took 0.454 seconds explode() took 0.002 seconds
Output for 7.0.18
preg_match() took 0.433 seconds explode() took 0.004 seconds
Output for 7.0.17
preg_match() took 0.641 seconds explode() took 0.004 seconds
Output for 7.0.16
preg_match() took 0.341 seconds explode() took 0.002 seconds
Output for 7.0.15
preg_match() took 0.380 seconds explode() took 0.004 seconds
Output for 7.0.14
preg_match() took 0.382 seconds explode() took 0.004 seconds
Output for 7.0.13
preg_match() took 0.383 seconds explode() took 0.003 seconds
Output for 7.0.12
preg_match() took 0.386 seconds explode() took 0.003 seconds
Output for 7.0.11
preg_match() took 0.465 seconds explode() took 0.002 seconds
Output for 7.0.10
preg_match() took 0.630 seconds explode() took 0.002 seconds
Output for 7.0.9
preg_match() took 0.325 seconds explode() took 0.003 seconds
Output for 7.0.8
preg_match() took 0.327 seconds explode() took 0.002 seconds
Output for 7.0.7
preg_match() took 0.355 seconds explode() took 0.002 seconds
Output for 7.0.6
preg_match() took 0.503 seconds explode() took 0.002 seconds
Output for 7.0.5
preg_match() took 0.335 seconds explode() took 0.002 seconds
Output for 7.0.4
preg_match() took 0.456 seconds explode() took 0.007 seconds
Output for 7.0.3
preg_match() took 0.365 seconds explode() took 0.004 seconds
Output for 7.0.2
preg_match() took 0.663 seconds explode() took 0.003 seconds
Output for 7.0.1
preg_match() took 0.585 seconds explode() took 0.003 seconds
Output for 7.0.0
preg_match() took 0.554 seconds explode() took 0.004 seconds
Output for hhvm-3.17.3
preg_match() took 0.520 seconds explode() took 0.004 seconds
Output for hhvm-3.15.4
preg_match() took 0.624 seconds explode() took 0.004 seconds
Output for hhvm-3.13.2
preg_match() took 0.635 seconds explode() took 0.005 seconds
Output for hhvm-3.12.14
preg_match() took 0.713 seconds explode() took 0.004 seconds
Output for hhvm-3.11.1
preg_match() took 0.852 seconds explode() took 0.005 seconds
Output for hhvm-3.10.1
preg_match() took 0.785 seconds explode() took 0.005 seconds
Output for 5.6.30
preg_match() took 1.460 seconds explode() took 0.009 seconds
Output for 5.6.29
preg_match() took 1.613 seconds explode() took 0.007 seconds
Output for 5.6.28
preg_match() took 1.340 seconds explode() took 0.011 seconds
Output for 5.6.27
preg_match() took 1.088 seconds explode() took 0.008 seconds
Output for 5.6.26
preg_match() took 1.091 seconds explode() took 0.007 seconds
Output for 5.6.25
preg_match() took 1.194 seconds explode() took 0.006 seconds
Output for 5.6.24
preg_match() took 1.072 seconds explode() took 0.007 seconds
Output for 5.6.23
preg_match() took 1.286 seconds explode() took 0.007 seconds
Output for 5.6.22
preg_match() took 2.097 seconds explode() took 0.007 seconds
Output for 5.6.21
preg_match() took 1.140 seconds explode() took 0.007 seconds
Output for 5.6.20
preg_match() took 1.441 seconds explode() took 0.008 seconds
Output for 5.6.19
preg_match() took 1.002 seconds explode() took 0.007 seconds
Output for 5.6.18
preg_match() took 1.110 seconds explode() took 0.009 seconds
Output for 5.6.17
preg_match() took 1.400 seconds explode() took 0.007 seconds
Output for 5.6.16
preg_match() took 1.671 seconds explode() took 0.007 seconds
Output for 5.6.15
preg_match() took 1.402 seconds explode() took 0.007 seconds
Output for 5.6.14
preg_match() took 1.183 seconds explode() took 0.008 seconds
Output for 5.6.13
preg_match() took 1.441 seconds explode() took 0.007 seconds
Output for 5.6.12
preg_match() took 1.550 seconds explode() took 0.007 seconds
Output for 5.6.11
preg_match() took 1.166 seconds explode() took 0.009 seconds
Output for 5.6.10
preg_match() took 1.331 seconds explode() took 0.008 seconds
Output for 5.6.9
preg_match() took 0.974 seconds explode() took 0.007 seconds
Output for 5.6.8
preg_match() took 1.382 seconds explode() took 0.009 seconds
Output for 5.6.7
preg_match() took 1.563 seconds explode() took 0.007 seconds
Output for 5.6.6
preg_match() took 1.799 seconds explode() took 0.008 seconds
Output for 5.6.5
preg_match() took 2.161 seconds explode() took 0.010 seconds
Output for 5.6.4
preg_match() took 1.962 seconds explode() took 0.010 seconds
Output for 5.5.21, 5.6.3

Process exited with code 137.
Output for 5.6.2
preg_match() took 1.212 seconds explode() took 0.008 seconds
Output for 5.6.1
preg_match() took 1.359 seconds explode() took 0.008 seconds
Output for 5.6.0
preg_match() took 0.970 seconds explode() took 0.007 seconds
Output for 5.5.38
preg_match() took 1.143 seconds explode() took 0.007 seconds
Output for 5.5.37
preg_match() took 1.314 seconds explode() took 0.011 seconds
Output for 5.5.36
preg_match() took 1.133 seconds explode() took 0.007 seconds
Output for 5.5.35
preg_match() took 1.565 seconds explode() took 0.012 seconds
Output for 5.5.34
preg_match() took 1.125 seconds explode() took 0.007 seconds
Output for 5.5.33
preg_match() took 1.136 seconds explode() took 0.007 seconds
Output for 5.5.32
preg_match() took 1.367 seconds explode() took 0.007 seconds
Output for 5.5.31
preg_match() took 1.223 seconds explode() took 0.008 seconds
Output for 5.5.30
preg_match() took 1.763 seconds explode() took 0.008 seconds
Output for 5.5.29
preg_match() took 1.086 seconds explode() took 0.012 seconds
Output for 5.5.28
preg_match() took 0.992 seconds explode() took 0.007 seconds
Output for 5.5.27
preg_match() took 1.204 seconds explode() took 0.008 seconds
Output for 5.5.26
preg_match() took 1.238 seconds explode() took 0.007 seconds
Output for 5.5.25
preg_match() took 1.309 seconds explode() took 0.008 seconds
Output for 5.5.24
preg_match() took 1.491 seconds explode() took 0.011 seconds
Output for 5.5.23
preg_match() took 1.648 seconds explode() took 0.008 seconds
Output for 5.5.22
preg_match() took 1.676 seconds explode() took 0.013 seconds
Output for 5.5.20
preg_match() took 2.126 seconds explode() took 0.012 seconds
Output for 5.5.19
preg_match() took 1.217 seconds explode() took 0.008 seconds
Output for 5.5.18
preg_match() took 1.161 seconds explode() took 0.009 seconds
Output for 5.5.16
preg_match() took 1.233 seconds explode() took 0.009 seconds
Output for 5.5.15
preg_match() took 1.080 seconds explode() took 0.007 seconds
Output for 5.5.14
preg_match() took 1.725 seconds explode() took 0.008 seconds
Output for 5.5.13
preg_match() took 1.342 seconds explode() took 0.007 seconds
Output for 5.5.12
preg_match() took 1.470 seconds explode() took 0.008 seconds
Output for 5.5.11
preg_match() took 1.206 seconds explode() took 0.007 seconds
Output for 5.5.10
preg_match() took 1.130 seconds explode() took 0.007 seconds
Output for 5.5.9
preg_match() took 1.354 seconds explode() took 0.007 seconds
Output for 5.5.8
preg_match() took 1.069 seconds explode() took 0.007 seconds
Output for 5.5.7
preg_match() took 1.156 seconds explode() took 0.008 seconds
Output for 5.5.6
preg_match() took 1.695 seconds explode() took 0.010 seconds
Output for 5.5.5
preg_match() took 1.497 seconds explode() took 0.009 seconds
Output for 5.5.4
preg_match() took 1.264 seconds explode() took 0.013 seconds
Output for 5.5.3
preg_match() took 1.344 seconds explode() took 0.007 seconds
Output for 5.5.2
preg_match() took 1.262 seconds explode() took 0.009 seconds
Output for 5.5.1
preg_match() took 1.351 seconds explode() took 0.012 seconds
Output for 5.5.0
preg_match() took 1.203 seconds explode() took 0.007 seconds
Output for 5.4.45
preg_match() took 0.967 seconds explode() took 0.009 seconds
Output for 5.4.44
preg_match() took 1.349 seconds explode() took 0.008 seconds
Output for 5.4.43
preg_match() took 1.695 seconds explode() took 0.009 seconds
Output for 5.4.42
preg_match() took 1.167 seconds explode() took 0.009 seconds
Output for 5.4.41
preg_match() took 1.368 seconds explode() took 0.008 seconds
Output for 5.4.40
preg_match() took 1.148 seconds explode() took 0.009 seconds
Output for 5.4.39
preg_match() took 1.732 seconds explode() took 0.011 seconds
Output for 5.4.38
preg_match() took 1.531 seconds explode() took 0.008 seconds
Output for 5.4.37
preg_match() took 1.753 seconds explode() took 0.014 seconds
Output for 5.4.36
preg_match() took 2.024 seconds explode() took 0.013 seconds
Output for 5.4.35
preg_match() took 1.172 seconds explode() took 0.011 seconds
Output for 5.4.34
preg_match() took 1.320 seconds explode() took 0.011 seconds
Output for 5.4.32
preg_match() took 0.905 seconds explode() took 0.007 seconds
Output for 5.4.31
preg_match() took 0.987 seconds explode() took 0.007 seconds
Output for 5.4.30
preg_match() took 1.652 seconds explode() took 0.009 seconds
Output for 5.4.29
preg_match() took 1.010 seconds explode() took 0.007 seconds
Output for 5.4.28
preg_match() took 1.072 seconds explode() took 0.008 seconds
Output for 5.4.27
preg_match() took 1.287 seconds explode() took 0.007 seconds
Output for 5.4.26
preg_match() took 0.916 seconds explode() took 0.006 seconds
Output for 5.4.25
preg_match() took 0.963 seconds explode() took 0.007 seconds
Output for 5.4.24
preg_match() took 1.170 seconds explode() took 0.010 seconds
Output for 5.4.23
preg_match() took 0.981 seconds explode() took 0.008 seconds
Output for 5.4.22
preg_match() took 1.219 seconds explode() took 0.008 seconds
Output for 5.4.21
preg_match() took 1.020 seconds explode() took 0.009 seconds
Output for 5.4.20
preg_match() took 1.784 seconds explode() took 0.012 seconds
Output for 5.4.19
preg_match() took 0.883 seconds explode() took 0.010 seconds
Output for 5.4.18
preg_match() took 0.959 seconds explode() took 0.008 seconds
Output for 5.4.17
preg_match() took 1.031 seconds explode() took 0.007 seconds
Output for 5.4.16
preg_match() took 1.086 seconds explode() took 0.007 seconds
Output for 5.4.15
preg_match() took 1.030 seconds explode() took 0.008 seconds
Output for 5.4.14
preg_match() took 1.028 seconds explode() took 0.007 seconds
Output for 5.4.13
preg_match() took 1.045 seconds explode() took 0.010 seconds
Output for 5.4.12
preg_match() took 1.193 seconds explode() took 0.007 seconds
Output for 5.4.11
preg_match() took 0.902 seconds explode() took 0.007 seconds
Output for 5.4.10
preg_match() took 1.032 seconds explode() took 0.012 seconds
Output for 5.4.9
preg_match() took 1.219 seconds explode() took 0.013 seconds
Output for 5.4.8
preg_match() took 1.522 seconds explode() took 0.008 seconds
Output for 5.4.7
preg_match() took 1.282 seconds explode() took 0.012 seconds
Output for 5.4.6
preg_match() took 1.263 seconds explode() took 0.008 seconds
Output for 5.4.5
preg_match() took 1.454 seconds explode() took 0.008 seconds
Output for 5.4.4
preg_match() took 1.354 seconds explode() took 0.013 seconds
Output for 5.4.3
preg_match() took 1.232 seconds explode() took 0.008 seconds
Output for 5.4.2
preg_match() took 1.114 seconds explode() took 0.007 seconds
Output for 5.4.1
preg_match() took 1.094 seconds explode() took 0.011 seconds
Output for 5.4.0
preg_match() took 1.586 seconds explode() took 0.012 seconds
Output for 5.3.29
preg_match() took 1.169 seconds explode() took 0.008 seconds
Output for 5.3.28
preg_match() took 1.144 seconds explode() took 0.009 seconds
Output for 5.3.27
preg_match() took 1.397 seconds explode() took 0.009 seconds
Output for 5.3.26
preg_match() took 1.086 seconds explode() took 0.008 seconds
Output for 5.3.25
preg_match() took 1.273 seconds explode() took 0.008 seconds
Output for 5.3.24
preg_match() took 1.521 seconds explode() took 0.007 seconds
Output for 5.3.23
preg_match() took 1.151 seconds explode() took 0.009 seconds
Output for 5.3.22
preg_match() took 1.185 seconds explode() took 0.009 seconds
Output for 5.3.21
preg_match() took 1.175 seconds explode() took 0.011 seconds
Output for 5.3.20
preg_match() took 1.159 seconds explode() took 0.009 seconds
Output for 5.3.19
preg_match() took 1.384 seconds explode() took 0.009 seconds
Output for 5.3.18
preg_match() took 1.659 seconds explode() took 0.013 seconds
Output for 5.3.17
preg_match() took 1.977 seconds explode() took 0.014 seconds
Output for 5.3.16
preg_match() took 1.587 seconds explode() took 0.011 seconds
Output for 5.3.15
preg_match() took 2.034 seconds explode() took 0.009 seconds
Output for 5.3.14
preg_match() took 1.862 seconds explode() took 0.026 seconds
Output for 5.3.13
preg_match() took 1.947 seconds explode() took 0.016 seconds
Output for 5.3.12
preg_match() took 1.756 seconds explode() took 0.013 seconds
Output for 5.3.11
preg_match() took 1.796 seconds explode() took 0.010 seconds
Output for 5.3.10
preg_match() took 2.047 seconds explode() took 0.015 seconds
Output for 5.3.9
preg_match() took 1.936 seconds explode() took 0.010 seconds
Output for 5.3.8
preg_match() took 1.265 seconds explode() took 0.010 seconds
Output for 5.3.7
preg_match() took 1.220 seconds explode() took 0.013 seconds
Output for 5.3.6
preg_match() took 1.606 seconds explode() took 0.012 seconds
Output for 5.3.5
preg_match() took 1.491 seconds explode() took 0.010 seconds
Output for 5.3.4
preg_match() took 1.831 seconds explode() took 0.008 seconds
Output for 5.3.3
preg_match() took 1.865 seconds explode() took 0.032 seconds
Output for 5.3.2
preg_match() took 1.466 seconds explode() took 0.012 seconds
Output for 5.3.1
preg_match() took 1.459 seconds explode() took 0.008 seconds
Output for 5.3.0
preg_match() took 1.483 seconds explode() took 0.008 seconds
Output for 5.2.17
preg_match() took 1.609 seconds explode() took 0.011 seconds
Output for 5.2.16
preg_match() took 1.692 seconds explode() took 0.015 seconds
Output for 5.2.15
preg_match() took 1.525 seconds explode() took 0.009 seconds
Output for 5.2.14
preg_match() took 1.713 seconds explode() took 0.021 seconds
Output for 5.2.13
preg_match() took 1.637 seconds explode() took 0.009 seconds
Output for 5.2.12
preg_match() took 1.250 seconds explode() took 0.009 seconds
Output for 5.2.11
preg_match() took 1.711 seconds explode() took 0.012 seconds
Output for 5.2.10
preg_match() took 1.953 seconds explode() took 0.014 seconds
Output for 5.2.9
preg_match() took 1.867 seconds explode() took 0.013 seconds
Output for 5.2.8
preg_match() took 1.934 seconds explode() took 0.009 seconds
Output for 5.2.7
preg_match() took 1.950 seconds explode() took 0.012 seconds
Output for 5.2.6
preg_match() took 1.597 seconds explode() took 0.007 seconds
Output for 5.2.5
preg_match() took 1.351 seconds explode() took 0.014 seconds
Output for 5.2.4
preg_match() took 1.381 seconds explode() took 0.010 seconds
Output for 5.2.3
preg_match() took 1.430 seconds explode() took 0.008 seconds
Output for 5.2.2
preg_match() took 1.558 seconds explode() took 0.010 seconds
Output for 5.2.1
preg_match() took 1.495 seconds explode() took 0.008 seconds
Output for 5.2.0
preg_match() took 1.481 seconds explode() took 0.007 seconds
Output for 5.1.6
preg_match() took 1.256 seconds explode() took 0.007 seconds
Output for 5.1.5
preg_match() took 1.660 seconds explode() took 0.011 seconds
Output for 5.1.4
preg_match() took 1.483 seconds explode() took 0.014 seconds
Output for 5.1.3
preg_match() took 1.464 seconds explode() took 0.016 seconds
Output for 5.1.2
preg_match() took 1.289 seconds explode() took 0.012 seconds
Output for 5.1.1
preg_match() took 1.406 seconds explode() took 0.013 seconds
Output for 5.1.0
preg_match() took 1.469 seconds explode() took 0.008 seconds
Output for 5.0.5
preg_match() took 1.605 seconds explode() took 0.009 seconds
Output for 5.0.4
preg_match() took 1.356 seconds explode() took 0.011 seconds
Output for 5.0.3
preg_match() took 1.232 seconds explode() took 0.009 seconds
Output for 5.0.2
preg_match() took 1.719 seconds explode() took 0.012 seconds
Output for 5.0.1
preg_match() took 1.351 seconds explode() took 0.009 seconds
Output for 5.0.0
preg_match() took 1.736 seconds explode() took 0.014 seconds
Output for 4.4.9
preg_match() took 0.675 seconds explode() took 0.013 seconds
Output for 4.4.8
preg_match() took 0.366 seconds explode() took 0.010 seconds
Output for 4.4.7
preg_match() took 0.575 seconds explode() took 0.010 seconds
Output for 4.4.6
preg_match() took 0.404 seconds explode() took 0.010 seconds
Output for 4.4.5
preg_match() took 0.236 seconds explode() took 0.010 seconds
Output for 4.4.4
preg_match() took 0.623 seconds explode() took 0.014 seconds
Output for 4.4.3
preg_match() took 0.572 seconds explode() took 0.015 seconds
Output for 4.4.2
preg_match() took 0.798 seconds explode() took 0.013 seconds
Output for 4.4.1
preg_match() took 0.306 seconds explode() took 0.010 seconds
Output for 4.4.0
preg_match() took 0.470 seconds explode() took 0.009 seconds
Output for 4.3.11
preg_match() took 0.635 seconds explode() took 0.012 seconds
Output for 4.3.10
preg_match() took 0.230 seconds explode() took 0.013 seconds
Output for 4.3.9
preg_match() took 0.322 seconds explode() took 0.009 seconds
Output for 4.3.8
preg_match() took 0.466 seconds explode() took 0.008 seconds
Output for 4.3.7
preg_match() took 0.176 seconds explode() took 0.009 seconds
Output for 4.3.6
preg_match() took 0.616 seconds explode() took 0.008 seconds
Output for 4.3.5
preg_match() took 0.495 seconds explode() took 0.014 seconds
Output for 4.3.4
preg_match() took 0.375 seconds explode() took 0.013 seconds
Output for 4.3.3
preg_match() took 0.731 seconds explode() took 0.010 seconds
Output for 4.3.2
preg_match() took 0.570 seconds explode() took 0.014 seconds
Output for 4.3.1
preg_match() took 0.222 seconds explode() took 0.008 seconds
Output for 4.3.0
preg_match() took 0.126 seconds explode() took 0.010 seconds