3v4l.org

run code in 150+ 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 < 1000000; $i++) { strpos('label', 'label-en_US'); explode('-', 'label-en_US'); } $time = microtime(true) - $time; echo 'explode() took ' . number_format($time, 3) . ' seconds' . "\n";
Output for 7.1.0
preg_match() took 0.183 seconds explode() took 0.110 seconds
Output for 7.0.14
preg_match() took -0.245 seconds explode() took -0.110 seconds
Output for 7.0.12
preg_match() took 0.251 seconds explode() took 0.135 seconds
Output for 7.0.10
preg_match() took 0.275 seconds explode() took 0.106 seconds
Output for 7.0.9
preg_match() took 0.318 seconds explode() took 0.102 seconds
Output for 7.0.8
preg_match() took 0.277 seconds explode() took 0.105 seconds
Output for 7.0.7
preg_match() took 0.267 seconds explode() took 0.105 seconds
Output for 7.0.6
preg_match() took 0.270 seconds explode() took 0.118 seconds
Output for 7.0.5
preg_match() took 0.286 seconds explode() took 0.104 seconds
Output for 7.0.4
preg_match() took 0.290 seconds explode() took 0.140 seconds
Output for 7.0.3
preg_match() took 0.247 seconds explode() took 0.100 seconds
Output for 7.0.2
preg_match() took 0.329 seconds explode() took 0.109 seconds
Output for 7.0.1
preg_match() took 0.275 seconds explode() took 0.108 seconds
Output for 7.0.0
preg_match() took 0.360 seconds explode() took 0.136 seconds
Output for 5.6.28
preg_match() took 0.729 seconds explode() took 0.443 seconds
Output for 5.6.25
preg_match() took 0.580 seconds explode() took 0.430 seconds
Output for 5.6.24
preg_match() took 0.592 seconds explode() took 0.448 seconds
Output for 5.6.23
preg_match() took 0.539 seconds explode() took 0.394 seconds
Output for 5.6.22
preg_match() took 0.575 seconds explode() took 0.403 seconds
Output for 5.6.21
preg_match() took 0.592 seconds explode() took 0.432 seconds
Output for 5.6.20
preg_match() took 0.624 seconds explode() took 0.419 seconds
Output for 5.6.19
preg_match() took 0.680 seconds explode() took 0.441 seconds
Output for 5.6.18
preg_match() took 0.564 seconds explode() took 0.383 seconds
Output for 5.6.17
preg_match() took 0.742 seconds explode() took 0.502 seconds
Output for 5.6.16
preg_match() took 0.577 seconds explode() took 0.448 seconds
Output for 5.6.15
preg_match() took 0.580 seconds explode() took 0.407 seconds
Output for 5.6.14
preg_match() took 0.601 seconds explode() took 0.438 seconds
Output for 5.6.13
preg_match() took 0.573 seconds explode() took 0.412 seconds
Output for 5.6.12
preg_match() took 0.555 seconds explode() took 0.374 seconds
Output for 5.6.11
preg_match() took 0.508 seconds explode() took 0.369 seconds
Output for 5.6.10
preg_match() took 0.599 seconds explode() took 0.436 seconds
Output for 5.6.9
preg_match() took 0.647 seconds explode() took 0.423 seconds
Output for 5.6.4, 5.6.8
preg_match() took 0.581 seconds explode() took 0.444 seconds
Output for 5.6.7
preg_match() took 0.572 seconds explode() took 0.460 seconds
Output for 5.6.6
preg_match() took 0.500 seconds explode() took 0.373 seconds
Output for 5.6.5
preg_match() took 0.582 seconds explode() took 0.371 seconds
Output for 5.6.3
preg_match() took 0.522 seconds explode() took 0.370 seconds
Output for 5.6.2
preg_match() took 0.626 seconds explode() took 0.427 seconds
Output for 5.6.1
preg_match() took 0.536 seconds explode() took 0.378 seconds
Output for 5.6.0
preg_match() took 0.630 seconds explode() took 0.431 seconds
Output for 5.5.38
preg_match() took 0.603 seconds explode() took 0.473 seconds
Output for 5.5.37
preg_match() took 0.599 seconds explode() took 0.448 seconds
Output for 5.5.36
preg_match() took 0.600 seconds explode() took 0.453 seconds
Output for 5.5.35
preg_match() took 0.602 seconds explode() took 0.436 seconds
Output for 5.5.34
preg_match() took 0.587 seconds explode() took 0.430 seconds
Output for 5.5.33
preg_match() took 0.608 seconds explode() took 0.442 seconds
Output for 5.5.32
preg_match() took 0.584 seconds explode() took 0.418 seconds
Output for 5.5.31
preg_match() took 0.610 seconds explode() took 0.453 seconds
Output for 5.5.30
preg_match() took 0.635 seconds explode() took 0.452 seconds
Output for 5.5.29
preg_match() took 0.600 seconds explode() took 0.455 seconds
Output for 5.5.28
preg_match() took 0.477 seconds explode() took 0.382 seconds
Output for 5.5.27
preg_match() took 0.587 seconds explode() took 0.400 seconds
Output for 5.5.26
preg_match() took 0.545 seconds explode() took 0.451 seconds
Output for 5.5.25
preg_match() took 0.581 seconds explode() took 0.415 seconds
Output for 5.5.24
preg_match() took 0.601 seconds explode() took 0.463 seconds
Output for 5.5.23
preg_match() took 0.605 seconds explode() took 0.426 seconds
Output for 5.5.22
preg_match() took 0.616 seconds explode() took 0.453 seconds
Output for 5.5.21
preg_match() took 0.546 seconds explode() took 0.392 seconds
Output for 5.5.20
preg_match() took 0.608 seconds explode() took 0.448 seconds
Output for 5.5.19
preg_match() took 0.594 seconds explode() took 0.427 seconds
Output for 5.5.18
preg_match() took 0.611 seconds explode() took 0.430 seconds
Output for 5.5.16
preg_match() took 0.588 seconds explode() took 0.438 seconds
Output for 5.5.15
preg_match() took 0.534 seconds explode() took 0.380 seconds
Output for 5.5.14
preg_match() took 0.591 seconds explode() took 0.433 seconds
Output for 5.5.13
preg_match() took 0.580 seconds explode() took 0.403 seconds
Output for 5.5.12
preg_match() took 0.578 seconds explode() took 0.382 seconds
Output for 5.5.11
preg_match() took 0.564 seconds explode() took 0.387 seconds
Output for 5.5.10
preg_match() took 0.473 seconds explode() took 0.385 seconds
Output for 5.5.9
preg_match() took 0.590 seconds explode() took 0.434 seconds
Output for 5.5.8
preg_match() took 0.469 seconds explode() took 0.385 seconds
Output for 5.5.7
preg_match() took 0.603 seconds explode() took 0.481 seconds
Output for 5.5.6
preg_match() took 0.532 seconds explode() took 0.392 seconds
Output for 5.5.5
preg_match() took 0.588 seconds explode() took 0.449 seconds
Output for 5.5.4
preg_match() took 0.634 seconds explode() took 0.394 seconds
Output for 5.5.3
preg_match() took 0.594 seconds explode() took 0.432 seconds
Output for 5.5.2
preg_match() took 0.589 seconds explode() took 0.430 seconds
Output for 5.5.1
preg_match() took 0.593 seconds explode() took 0.429 seconds
Output for 5.5.0
preg_match() took 0.589 seconds explode() took 0.432 seconds
Output for 5.4.45
preg_match() took 0.560 seconds explode() took 0.457 seconds
Output for 5.4.44
preg_match() took 0.482 seconds explode() took 0.375 seconds
Output for 5.4.43
preg_match() took 0.452 seconds explode() took 0.378 seconds
Output for 5.4.42
preg_match() took 0.674 seconds explode() took 0.436 seconds
Output for 5.4.41
preg_match() took 0.565 seconds explode() took 0.443 seconds
Output for 5.4.40
preg_match() took 0.571 seconds explode() took 0.423 seconds
Output for 5.4.39
preg_match() took 0.564 seconds explode() took 0.414 seconds
Output for 5.4.38
preg_match() took 0.498 seconds explode() took 0.379 seconds
Output for 5.4.37
preg_match() took 0.525 seconds explode() took 0.379 seconds
Output for 5.4.36
preg_match() took 0.579 seconds explode() took 0.473 seconds
Output for 5.4.35
preg_match() took 0.595 seconds explode() took 0.442 seconds
Output for 5.4.34
preg_match() took 0.580 seconds explode() took 0.438 seconds
Output for 5.4.32
preg_match() took 0.554 seconds explode() took 0.397 seconds
Output for 5.4.31
preg_match() took 0.574 seconds explode() took 0.425 seconds
Output for 5.4.30
preg_match() took 0.570 seconds explode() took 0.424 seconds
Output for 5.4.29
preg_match() took 0.578 seconds explode() took 0.442 seconds
Output for 5.4.28
preg_match() took 0.577 seconds explode() took 0.402 seconds
Output for 5.4.27
preg_match() took 0.567 seconds explode() took 0.443 seconds
Output for 5.4.26
preg_match() took 0.446 seconds explode() took 0.384 seconds
Output for 5.4.25
preg_match() took 0.587 seconds explode() took 0.462 seconds
Output for 5.4.24
preg_match() took 0.566 seconds explode() took 0.391 seconds
Output for 5.4.23
preg_match() took 0.590 seconds explode() took 0.429 seconds
Output for 5.4.22
preg_match() took 0.451 seconds explode() took 0.383 seconds
Output for 5.4.21
preg_match() took 0.594 seconds explode() took 0.463 seconds
Output for 5.4.20
preg_match() took 0.505 seconds explode() took 0.380 seconds
Output for 5.4.19
preg_match() took 0.495 seconds explode() took 0.378 seconds
Output for 5.4.18
preg_match() took 0.585 seconds explode() took 0.465 seconds
Output for 5.4.17
preg_match() took 0.468 seconds explode() took 0.384 seconds
Output for 5.4.16
preg_match() took 0.556 seconds explode() took 0.444 seconds
Output for 5.4.15
preg_match() took 0.553 seconds explode() took 0.445 seconds
Output for 5.4.14
preg_match() took 0.626 seconds explode() took 0.456 seconds
Output for 5.4.13
preg_match() took 0.575 seconds explode() took 0.424 seconds
Output for 5.4.12
preg_match() took 0.597 seconds explode() took 0.466 seconds
Output for 5.4.11
preg_match() took 0.586 seconds explode() took 0.458 seconds
Output for 5.4.10
preg_match() took 0.564 seconds explode() took 0.461 seconds
Output for 5.4.9
preg_match() took 0.592 seconds explode() took 0.395 seconds
Output for 5.4.8
preg_match() took 0.525 seconds explode() took 0.454 seconds
Output for 5.4.7
preg_match() took 0.482 seconds explode() took 0.376 seconds
Output for 5.4.6
preg_match() took 0.623 seconds explode() took 0.442 seconds
Output for 5.4.5
preg_match() took 0.559 seconds explode() took 0.453 seconds
Output for 5.4.4
preg_match() took 0.570 seconds explode() took 0.426 seconds
Output for 5.4.3
preg_match() took 0.574 seconds explode() took 0.440 seconds
Output for 5.4.2
preg_match() took 0.587 seconds explode() took 0.431 seconds
Output for 5.4.1
preg_match() took 0.488 seconds explode() took 0.377 seconds
Output for 5.4.0
preg_match() took 0.462 seconds explode() took 0.380 seconds
Output for 5.3.29
preg_match() took 0.772 seconds explode() took 0.435 seconds
Output for 5.3.28
preg_match() took 0.629 seconds explode() took 0.411 seconds
Output for 5.3.27
preg_match() took 0.551 seconds explode() took 0.418 seconds
Output for 5.3.26
preg_match() took 0.642 seconds explode() took 0.448 seconds
Output for 5.3.25
preg_match() took 0.753 seconds explode() took 0.440 seconds
Output for 5.3.24
preg_match() took 0.675 seconds explode() took 0.463 seconds
Output for 5.3.23
preg_match() took 0.649 seconds explode() took 0.449 seconds
Output for 5.3.22
preg_match() took 0.672 seconds explode() took 0.494 seconds
Output for 5.3.21
preg_match() took 0.636 seconds explode() took 0.445 seconds
Output for 5.3.20
preg_match() took 0.562 seconds explode() took 0.477 seconds
Output for 5.3.19
preg_match() took 0.661 seconds explode() took 0.487 seconds
Output for 5.3.18
preg_match() took 0.572 seconds explode() took 0.442 seconds
Output for 5.3.17
preg_match() took 0.678 seconds explode() took 0.473 seconds
Output for 5.3.16
preg_match() took 0.652 seconds explode() took 0.453 seconds
Output for 5.3.15
preg_match() took 0.685 seconds explode() took 0.470 seconds
Output for 5.3.14
preg_match() took 0.661 seconds explode() took 0.467 seconds
Output for 5.3.13
preg_match() took 0.597 seconds explode() took 0.443 seconds
Output for 5.3.12
preg_match() took 0.666 seconds explode() took 0.487 seconds
Output for 5.3.11
preg_match() took 0.622 seconds explode() took 0.444 seconds
Output for 5.3.10
preg_match() took 0.561 seconds explode() took 0.451 seconds
Output for 5.3.9
preg_match() took 0.658 seconds explode() took 0.486 seconds
Output for 5.3.8
preg_match() took 0.582 seconds explode() took 0.436 seconds
Output for 5.3.7
preg_match() took 0.533 seconds explode() took 0.433 seconds
Output for 5.3.6
preg_match() took 0.579 seconds explode() took 0.451 seconds
Output for 5.3.5
preg_match() took 0.659 seconds explode() took 0.491 seconds
Output for 5.3.4
preg_match() took 0.637 seconds explode() took 0.456 seconds
Output for 5.3.3
preg_match() took 0.658 seconds explode() took 0.479 seconds
Output for 5.3.2
preg_match() took 0.656 seconds explode() took 0.485 seconds
Output for 5.3.1
preg_match() took 0.662 seconds explode() took 0.468 seconds
Output for 5.3.0
preg_match() took 0.681 seconds explode() took 0.478 seconds
Output for 5.2.17
preg_match() took 0.806 seconds explode() took 0.494 seconds
Output for 5.2.16
preg_match() took 0.699 seconds explode() took 0.484 seconds
Output for 5.2.15
preg_match() took 0.644 seconds explode() took 0.423 seconds
Output for 5.2.14
preg_match() took 0.670 seconds explode() took 0.520 seconds
Output for 5.2.13
preg_match() took 0.690 seconds explode() took 0.405 seconds
Output for 5.2.12
preg_match() took 0.690 seconds explode() took 0.425 seconds
Output for 5.2.11
preg_match() took 0.617 seconds explode() took 0.517 seconds
Output for 5.2.10
preg_match() took 0.568 seconds explode() took 0.407 seconds
Output for 5.2.9
preg_match() took 0.648 seconds explode() took 0.410 seconds
Output for 5.2.8
preg_match() took 0.680 seconds explode() took 0.413 seconds
Output for 5.2.7
preg_match() took 0.660 seconds explode() took 0.441 seconds
Output for 5.2.6
preg_match() took 0.542 seconds explode() took 0.400 seconds
Output for 5.2.5
preg_match() took 0.631 seconds explode() took 0.402 seconds
Output for 5.2.4
preg_match() took 0.693 seconds explode() took 0.409 seconds
Output for 5.2.3
preg_match() took 0.725 seconds explode() took 0.416 seconds
Output for 5.2.2
preg_match() took 0.664 seconds explode() took 0.405 seconds
Output for 5.2.1
preg_match() took 0.709 seconds explode() took 0.451 seconds
Output for 5.2.0
preg_match() took 0.710 seconds explode() took 0.438 seconds
Output for 5.1.6
preg_match() took 0.687 seconds explode() took 0.411 seconds
Output for 5.1.5
preg_match() took 0.697 seconds explode() took 0.411 seconds
Output for 5.1.4
preg_match() took 0.716 seconds explode() took 0.442 seconds
Output for 5.1.3
preg_match() took 0.714 seconds explode() took 0.364 seconds
Output for 5.1.2
preg_match() took 0.677 seconds explode() took 0.406 seconds
Output for 5.1.1
preg_match() took 0.669 seconds explode() took 0.434 seconds
Output for 5.1.0
preg_match() took 0.643 seconds explode() took 0.479 seconds
Output for 5.0.5
preg_match() took 0.822 seconds explode() took 0.504 seconds
Output for 5.0.4
preg_match() took 0.818 seconds explode() took 0.553 seconds
Output for 5.0.3
preg_match() took 0.674 seconds explode() took 0.478 seconds
Output for 5.0.2
preg_match() took 0.671 seconds explode() took 0.479 seconds
Output for 5.0.1
preg_match() took 0.783 seconds explode() took 0.591 seconds
Output for 5.0.0
preg_match() took 0.782 seconds explode() took 0.489 seconds
Output for 4.4.9
preg_match() took 0.685 seconds explode() took -0.500 seconds
Output for 4.4.8
preg_match() took 0.755 seconds explode() took -0.523 seconds
Output for 4.4.7
preg_match() took 0.749 seconds explode() took -0.526 seconds
Output for 4.4.6
preg_match() took 0.870 seconds explode() took -0.504 seconds
Output for 4.4.5
preg_match() took 0.699 seconds explode() took -0.466 seconds
Output for 4.4.4
preg_match() took 0.697 seconds explode() took -0.521 seconds
Output for 4.4.3
preg_match() took 0.734 seconds explode() took -0.526 seconds
Output for 4.4.2
preg_match() took 0.802 seconds explode() took -0.484 seconds
Output for 4.4.1
preg_match() took 0.867 seconds explode() took -0.473 seconds
Output for 4.4.0
preg_match() took 0.711 seconds explode() took -0.521 seconds
Output for 4.3.11
preg_match() took 0.652 seconds explode() took -0.515 seconds
Output for 4.3.10
preg_match() took 0.630 seconds explode() took -0.516 seconds
Output for 4.3.9
preg_match() took 0.686 seconds explode() took -0.528 seconds
Output for 4.3.8
preg_match() took 0.791 seconds explode() took -0.486 seconds
Output for 4.3.7
preg_match() took 0.775 seconds explode() took -0.499 seconds
Output for 4.3.6
preg_match() took 0.774 seconds explode() took -0.522 seconds
Output for 4.3.5
preg_match() took 0.745 seconds explode() took -0.384 seconds
Output for 4.3.4
preg_match() took 0.757 seconds explode() took -0.507 seconds
Output for 4.3.3
preg_match() took 0.660 seconds explode() took -0.534 seconds
Output for 4.3.2
preg_match() took 0.676 seconds explode() took -0.495 seconds
Output for 4.3.1
preg_match() took 0.659 seconds explode() took -0.504 seconds
Output for 4.3.0
preg_match() took 0.558 seconds explode() took -0.530 seconds