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 < 10000; $i++) { 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.219 seconds explode() took 0.001 seconds
Output for 7.0.14
preg_match() took -0.159 seconds explode() took -0.001 seconds
Output for 7.0.12
preg_match() took 0.212 seconds explode() took 0.001 seconds
Output for 7.0.6
preg_match() took 0.294 seconds explode() took 0.001 seconds
Output for 7.0.5
preg_match() took 0.276 seconds explode() took 0.001 seconds
Output for 7.0.4
preg_match() took 0.266 seconds explode() took 0.001 seconds
Output for 7.0.3
preg_match() took 0.272 seconds explode() took 0.001 seconds
Output for 7.0.2
preg_match() took 0.284 seconds explode() took 0.001 seconds
Output for 7.0.1
preg_match() took 0.285 seconds explode() took 0.001 seconds
Output for 7.0.0
preg_match() took 0.286 seconds explode() took 0.001 seconds
Output for hhvm-3.12.0
preg_match() took 0.296 seconds explode() took 0.002 seconds
Output for hhvm-3.10.0
preg_match() took 0.305 seconds explode() took 0.002 seconds
Output for 5.6.28
preg_match() took 0.452 seconds explode() took -0.003 seconds
Output for 5.5.22, 5.5.25, 5.5.28, 5.6.21
preg_match() took 0.592 seconds explode() took 0.003 seconds
Output for 5.5.7, 5.5.18 - 5.5.19, 5.6.20
preg_match() took 0.576 seconds explode() took 0.003 seconds
Output for 5.5.10, 5.6.19
preg_match() took 0.567 seconds explode() took 0.003 seconds
Output for 5.5.29, 5.6.18
preg_match() took 0.589 seconds explode() took 0.003 seconds
Output for 5.5.16, 5.6.17
preg_match() took 0.565 seconds explode() took 0.003 seconds
Output for 5.6.16
preg_match() took 0.554 seconds explode() took 0.003 seconds
Output for 5.6.15
preg_match() took 0.543 seconds explode() took 0.003 seconds
Output for 5.6.10, 5.6.14
preg_match() took 0.572 seconds explode() took 0.003 seconds
Output for 5.6.13
preg_match() took 0.570 seconds explode() took 0.003 seconds
Output for 5.4.25, 5.5.24, 5.6.12
preg_match() took 0.588 seconds explode() took 0.003 seconds
Output for 5.6.0, 5.6.11
preg_match() took 0.542 seconds explode() took 0.003 seconds
Output for 5.6.9
preg_match() took 0.560 seconds explode() took 0.003 seconds
Output for 5.6.8
preg_match() took 0.594 seconds explode() took 0.003 seconds
Output for 5.6.7
preg_match() took 0.568 seconds explode() took 0.003 seconds
Output for 5.6.6
preg_match() took 0.539 seconds explode() took 0.003 seconds
Output for 5.4.40, 5.5.26, 5.6.5
preg_match() took 0.587 seconds explode() took 0.003 seconds
Output for 5.6.4
preg_match() took 0.548 seconds explode() took 0.003 seconds
Output for 5.6.3
preg_match() took 0.544 seconds explode() took 0.003 seconds
Output for 5.3.25, 5.4.19, 5.4.31, 5.6.2
preg_match() took 0.618 seconds explode() took 0.003 seconds
Output for 5.6.1
preg_match() took 0.540 seconds explode() took 0.003 seconds
Output for 5.4.44 - 5.4.45, 5.5.35
preg_match() took 0.610 seconds explode() took 0.003 seconds
Output for 5.5.34
preg_match() took 0.563 seconds explode() took 0.003 seconds
Output for 5.5.33
preg_match() took 0.559 seconds explode() took 0.003 seconds
Output for 5.5.13, 5.5.32
preg_match() took 0.590 seconds explode() took 0.003 seconds
Output for 5.5.31
preg_match() took 0.551 seconds explode() took 0.003 seconds
Output for 5.5.30
preg_match() took 0.579 seconds explode() took 0.003 seconds
Output for 5.4.39, 5.5.27
preg_match() took 0.625 seconds explode() took 0.003 seconds
Output for 5.5.23
preg_match() took 0.555 seconds explode() took 0.003 seconds
Output for 5.5.21
preg_match() took 0.602 seconds explode() took 0.004 seconds
Output for 5.5.20
preg_match() took 0.552 seconds explode() took 0.003 seconds
Output for 5.5.15
preg_match() took 0.634 seconds explode() took 0.004 seconds
Output for 5.5.14
preg_match() took 0.575 seconds explode() took 0.003 seconds
Output for 5.5.3, 5.5.12
preg_match() took 0.597 seconds explode() took 0.003 seconds
Output for 5.2.2, 5.5.11
preg_match() took 0.708 seconds explode() took 0.003 seconds
Output for 5.5.9
preg_match() took 0.549 seconds explode() took 0.003 seconds
Output for 5.4.10, 5.5.8
preg_match() took 0.646 seconds explode() took 0.004 seconds
Output for 5.5.6
preg_match() took 0.598 seconds explode() took 0.003 seconds
Output for 5.5.5
preg_match() took 0.677 seconds explode() took 0.004 seconds
Output for 5.4.34, 5.5.4
preg_match() took 0.591 seconds explode() took 0.003 seconds
Output for 5.5.2
preg_match() took 0.695 seconds explode() took 0.004 seconds
Output for 5.5.1
preg_match() took 0.578 seconds explode() took 0.003 seconds
Output for 5.5.0
preg_match() took 0.615 seconds explode() took 0.004 seconds
Output for 5.4.43
preg_match() took 0.642 seconds explode() took 0.003 seconds
Output for 5.4.42
preg_match() took 0.635 seconds explode() took 0.003 seconds
Output for 5.4.41
preg_match() took 0.611 seconds explode() took 0.003 seconds
Output for 5.4.32, 5.4.38
preg_match() took 0.601 seconds explode() took 0.003 seconds
Output for 5.4.37
preg_match() took 0.616 seconds explode() took 0.003 seconds
Output for 5.4.36
preg_match() took 0.586 seconds explode() took 0.003 seconds
Output for 5.4.29, 5.4.35
preg_match() took 0.584 seconds explode() took 0.003 seconds
Output for 5.4.30
preg_match() took 0.607 seconds explode() took 0.003 seconds
Output for 5.4.2, 5.4.28
preg_match() took 0.617 seconds explode() took 0.003 seconds
Output for 5.4.23, 5.4.27
preg_match() took 0.637 seconds explode() took 0.003 seconds
Output for 5.4.26
preg_match() took 0.621 seconds explode() took 0.003 seconds
Output for 5.4.24
preg_match() took 0.630 seconds explode() took 0.003 seconds
Output for 5.4.4, 5.4.22
preg_match() took 0.599 seconds explode() took 0.003 seconds
Output for 5.4.21
preg_match() took 0.622 seconds explode() took 0.003 seconds
Output for 5.4.14, 5.4.20
preg_match() took 0.629 seconds explode() took 0.003 seconds
Output for 5.4.18
preg_match() took 0.615 seconds explode() took 0.003 seconds
Output for 5.4.17
preg_match() took 0.655 seconds explode() took 0.003 seconds
Output for 5.4.16
preg_match() took 0.628 seconds explode() took 0.003 seconds
Output for 5.4.15
preg_match() took 0.609 seconds explode() took 0.003 seconds
Output for 5.3.6, 5.4.13
preg_match() took 0.631 seconds explode() took 0.003 seconds
Output for 5.4.7, 5.4.12
preg_match() took 0.645 seconds explode() took 0.003 seconds
Output for 5.4.11
preg_match() took 0.672 seconds explode() took 0.003 seconds
Output for 5.4.9
preg_match() took 0.626 seconds explode() took 0.003 seconds
Output for 5.4.8
preg_match() took 0.619 seconds explode() took 0.003 seconds
Output for 5.4.6
preg_match() took 0.658 seconds explode() took 0.003 seconds
Output for 5.4.5
preg_match() took 0.600 seconds explode() took 0.003 seconds
Output for 5.4.3
preg_match() took 0.636 seconds explode() took 0.003 seconds
Output for 5.4.1
preg_match() took 0.602 seconds explode() took 0.003 seconds
Output for 5.4.0
preg_match() took 0.606 seconds explode() took 0.003 seconds
Output for 5.3.29
preg_match() took 0.646 seconds explode() took 0.003 seconds
Output for 5.3.28
preg_match() took 0.657 seconds explode() took 0.004 seconds
Output for 5.3.27
preg_match() took 0.782 seconds explode() took 0.004 seconds
Output for 5.3.8, 5.3.26
preg_match() took 0.608 seconds explode() took 0.003 seconds
Output for 5.3.24
preg_match() took 0.830 seconds explode() took 0.004 seconds
Output for 5.3.23
preg_match() took 0.648 seconds explode() took 0.004 seconds
Output for 5.3.22
preg_match() took 0.653 seconds explode() took 0.004 seconds
Output for 5.3.21
preg_match() took 0.764 seconds explode() took 0.005 seconds
Output for 5.3.20
preg_match() took 0.712 seconds explode() took 0.004 seconds
Output for 5.2.17, 5.3.19
preg_match() took 0.660 seconds explode() took 0.003 seconds
Output for 5.3.18
preg_match() took 0.735 seconds explode() took 0.005 seconds
Output for 5.3.2, 5.3.17
preg_match() took 0.669 seconds explode() took 0.003 seconds
Output for 5.3.16
preg_match() took 0.696 seconds explode() took 0.004 seconds
Output for 5.3.15
preg_match() took 0.665 seconds explode() took 0.003 seconds
Output for 5.3.14
preg_match() took 0.671 seconds explode() took 0.004 seconds
Output for 5.3.13
preg_match() took 0.673 seconds explode() took 0.004 seconds
Output for 5.3.12
preg_match() took 0.660 seconds explode() took 0.004 seconds
Output for 5.3.11
preg_match() took 0.754 seconds explode() took 0.004 seconds
Output for 5.3.10
preg_match() took 0.772 seconds explode() took 0.004 seconds
Output for 5.3.9
preg_match() took 0.751 seconds explode() took 0.004 seconds
Output for 5.3.7
preg_match() took 0.605 seconds explode() took 0.003 seconds
Output for 5.3.5
preg_match() took 0.655 seconds explode() took 0.004 seconds
Output for 5.3.4
preg_match() took 0.678 seconds explode() took 0.004 seconds
Output for 5.3.3
preg_match() took 0.666 seconds explode() took 0.004 seconds
Output for 5.3.1
preg_match() took 0.683 seconds explode() took 0.004 seconds
Output for 5.3.0
preg_match() took 0.669 seconds explode() took 0.004 seconds
Output for 5.2.16
preg_match() took 0.672 seconds explode() took 0.004 seconds
Output for 5.2.15
preg_match() took 0.662 seconds explode() took 0.003 seconds
Output for 5.2.14
preg_match() took 0.661 seconds explode() took 0.003 seconds
Output for 5.2.13
preg_match() took 0.682 seconds explode() took 0.003 seconds
Output for 5.2.12
preg_match() took 0.684 seconds explode() took 0.004 seconds
Output for 5.2.11
preg_match() took 0.806 seconds explode() took 0.004 seconds
Output for 5.2.10
preg_match() took 0.723 seconds explode() took 0.004 seconds
Output for 5.2.9
preg_match() took 0.647 seconds explode() took 0.003 seconds
Output for 5.2.7 - 5.2.8
preg_match() took 0.643 seconds explode() took 0.003 seconds
Output for 5.2.6
preg_match() took 0.663 seconds explode() took 0.004 seconds
Output for 5.2.5
preg_match() took 0.718 seconds explode() took 0.003 seconds
Output for 5.2.4
preg_match() took 0.689 seconds explode() took 0.003 seconds
Output for 5.2.3
preg_match() took 0.719 seconds explode() took 0.003 seconds
Output for 5.2.1
preg_match() took 0.701 seconds explode() took 0.003 seconds
Output for 5.2.0
preg_match() took 0.673 seconds explode() took 0.003 seconds
Output for 5.1.6
preg_match() took 0.677 seconds explode() took 0.003 seconds
Output for 5.1.5
preg_match() took 0.652 seconds explode() took 0.003 seconds
Output for 5.1.4
preg_match() took 0.670 seconds explode() took 0.003 seconds
Output for 5.1.3
preg_match() took 0.692 seconds explode() took 0.003 seconds
Output for 5.1.2
preg_match() took 0.639 seconds explode() took 0.003 seconds
Output for 5.1.1
preg_match() took 0.657 seconds explode() took 0.003 seconds
Output for 5.1.0
preg_match() took 0.679 seconds explode() took 0.003 seconds
Output for 5.0.5
preg_match() took 0.777 seconds explode() took 0.004 seconds
Output for 5.0.4
preg_match() took 0.809 seconds explode() took 0.004 seconds
Output for 5.0.3
preg_match() took 0.774 seconds explode() took 0.004 seconds
Output for 5.0.2
preg_match() took 0.832 seconds explode() took 0.004 seconds
Output for 5.0.1
preg_match() took 0.923 seconds explode() took 0.006 seconds
Output for 5.0.0
preg_match() took 0.787 seconds explode() took 0.004 seconds
Output for 4.4.9
preg_match() took -0.179 seconds explode() took 0.005 seconds
Output for 4.4.8
preg_match() took 0.808 seconds explode() took 0.005 seconds
Output for 4.4.7
preg_match() took -0.174 seconds explode() took 0.004 seconds
Output for 4.4.6
preg_match() took -0.150 seconds explode() took 0.004 seconds
Output for 4.4.5
preg_match() took -0.235 seconds explode() took 0.004 seconds
Output for 4.4.4
preg_match() took 0.789 seconds explode() took 0.004 seconds
Output for 4.4.3
preg_match() took -0.180 seconds explode() took 0.004 seconds
Output for 4.4.2
preg_match() took 0.769 seconds explode() took 0.004 seconds
Output for 4.4.1
preg_match() took -0.166 seconds explode() took 0.004 seconds
Output for 4.4.0
preg_match() took -0.167 seconds explode() took 0.004 seconds
Output for 4.3.11
preg_match() took -0.220 seconds explode() took 0.004 seconds
Output for 4.3.10
preg_match() took -0.224 seconds explode() took 0.004 seconds
Output for 4.3.9
preg_match() took 0.757 seconds explode() took 0.004 seconds
Output for 4.3.8
preg_match() took 0.739 seconds explode() took 0.004 seconds
Output for 4.3.7
preg_match() took -0.244 seconds explode() took 0.004 seconds
Output for 4.3.6
preg_match() took -0.219 seconds explode() took 0.004 seconds
Output for 4.3.5
preg_match() took -0.282 seconds explode() took 0.004 seconds
Output for 4.3.4
preg_match() took -0.256 seconds explode() took 0.004 seconds
Output for 4.3.3
preg_match() took -0.241 seconds explode() took 0.004 seconds
Output for 4.3.2
preg_match() took -0.312 seconds explode() took 0.004 seconds
Output for 4.3.1
preg_match() took 0.607 seconds explode() took 0.004 seconds
Output for 4.3.0
preg_match() took -0.352 seconds explode() took 0.004 seconds