3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = microtime(true); $steps = 0; for ($i = 0; $i < 10000000; $i += 1) { $steps += $i; } $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds'.PHP_EOL;
Output for 7.1.0
array_diff() took 0.218 seconds
Output for 7.0.14
array_diff() took 0.205 seconds
Output for 7.0.6
array_diff() took 0.183 seconds
Output for 7.0.5
array_diff() took 0.209 seconds
Output for 7.0.4
array_diff() took 0.203 seconds
Output for 7.0.3
array_diff() took 0.185 seconds
Output for 7.0.2
array_diff() took 0.226 seconds
Output for 7.0.1
array_diff() took 0.188 seconds
Output for 7.0.0
array_diff() took 0.178 seconds
Output for 5.6.28
array_diff() took -0.293 seconds
Output for 5.6.20 - 5.6.21
array_diff() took 0.351 seconds
Output for 5.6.8, 5.6.14, 5.6.19
array_diff() took 0.336 seconds
Output for 5.6.7, 5.6.18
array_diff() took 0.322 seconds
Output for 5.6.17
array_diff() took 0.324 seconds
Output for 5.6.16
array_diff() took 0.349 seconds
Output for 5.6.15
array_diff() took 0.341 seconds
Output for 5.4.32, 5.6.11, 5.6.13
array_diff() took 0.339 seconds
Output for 5.6.12
array_diff() took 0.331 seconds
Output for 5.6.10
array_diff() took 0.348 seconds
Output for 5.6.9
array_diff() took 0.340 seconds
Output for 5.5.34 - 5.5.35
array_diff() took 0.335 seconds
Output for 5.5.33
array_diff() took 0.344 seconds
Output for 5.4.43, 5.5.32
array_diff() took 0.338 seconds
Output for 5.5.30 - 5.5.31
array_diff() took 0.313 seconds
Output for 5.5.29
array_diff() took 0.334 seconds
Output for 5.5.28
array_diff() took 0.329 seconds
Output for 5.5.27
array_diff() took 0.323 seconds
Output for 5.3.18, 5.3.24, 5.4.41, 5.5.26
array_diff() took 0.408 seconds
Output for 5.5.25
array_diff() took 0.342 seconds
Output for 5.5.24
array_diff() took 0.332 seconds
Output for 5.4.45
array_diff() took 0.387 seconds
Output for 5.4.31, 5.4.44
array_diff() took 0.356 seconds
Output for 5.4.42
array_diff() took 0.297 seconds
Output for 5.3.25, 5.4.40
array_diff() took 0.403 seconds
Output for 5.4.39
array_diff() took 0.458 seconds
Output for 5.4.38
array_diff() took 0.481 seconds
Output for 5.3.23, 5.4.37
array_diff() took 0.480 seconds
Output for 5.4.36
array_diff() took 0.753 seconds
Output for 5.4.35
array_diff() took 0.763 seconds
Output for 5.4.34
array_diff() took 0.491 seconds
Output for 5.4.30
array_diff() took 0.367 seconds
Output for 5.4.29
array_diff() took 0.383 seconds
Output for 5.4.28
array_diff() took 0.461 seconds
Output for 5.4.27
array_diff() took 0.379 seconds
Output for 5.4.26
array_diff() took 0.392 seconds
Output for 5.4.25
array_diff() took 0.434 seconds
Output for 5.3.4, 5.4.24
array_diff() took 0.440 seconds
Output for 5.4.23
array_diff() took 0.381 seconds
Output for 5.4.22
array_diff() took 0.643 seconds
Output for 5.4.21
array_diff() took 0.594 seconds
Output for 5.4.20
array_diff() took 0.579 seconds
Output for 5.3.19, 5.4.19
array_diff() took 0.399 seconds
Output for 5.4.4, 5.4.18
array_diff() took 0.385 seconds
Output for 5.4.17
array_diff() took 0.406 seconds
Output for 5.4.16
array_diff() took 0.572 seconds
Output for 5.3.0, 5.4.15
array_diff() took 0.576 seconds
Output for 5.4.14
array_diff() took 0.556 seconds
Output for 5.3.8, 5.4.13
array_diff() took 0.470 seconds
Output for 5.4.12
array_diff() took 0.377 seconds
Output for 5.4.11
array_diff() took 0.378 seconds
Output for 5.4.10
array_diff() took 0.400 seconds
Output for 5.4.9
array_diff() took 0.419 seconds
Output for 5.4.8
array_diff() took 0.460 seconds
Output for 5.4.7
array_diff() took 0.420 seconds
Output for 5.4.6
array_diff() took 0.488 seconds
Output for 5.4.5
array_diff() took 0.376 seconds
Output for 5.4.3
array_diff() took 0.355 seconds
Output for 5.4.2
array_diff() took 0.401 seconds
Output for 5.4.1
array_diff() took 0.598 seconds
Output for 5.4.0
array_diff() took 0.485 seconds
Output for 5.3.29
array_diff() took 0.390 seconds
Output for 5.3.28
array_diff() took 0.398 seconds
Output for 5.3.12, 5.3.27
array_diff() took 0.436 seconds
Output for 5.3.26
array_diff() took 0.411 seconds
Output for 5.1.3, 5.3.22
array_diff() took 0.679 seconds
Output for 5.3.21
array_diff() took 0.529 seconds
Output for 5.3.5, 5.3.20
array_diff() took 0.437 seconds
Output for 5.3.1, 5.3.17
array_diff() took 0.507 seconds
Output for 5.3.16
array_diff() took 0.479 seconds
Output for 5.3.15
array_diff() took 0.424 seconds
Output for 5.3.14
array_diff() took 0.407 seconds
Output for 5.3.13
array_diff() took 0.443 seconds
Output for 5.3.11
array_diff() took 0.523 seconds
Output for 5.3.10
array_diff() took 0.475 seconds
Output for 5.3.9
array_diff() took 0.471 seconds
Output for 5.3.7
array_diff() took 0.522 seconds
Output for 5.3.6
array_diff() took 0.534 seconds
Output for 5.3.3
array_diff() took 0.423 seconds
Output for 5.3.2
array_diff() took 0.427 seconds
Output for 5.2.17
array_diff() took 0.610 seconds
Output for 5.2.16
array_diff() took 0.792 seconds
Output for 5.2.15
array_diff() took 0.800 seconds
Output for 5.2.14
array_diff() took 0.734 seconds
Output for 5.2.13
array_diff() took 0.659 seconds
Output for 5.2.12
array_diff() took 0.683 seconds
Output for 5.2.11
array_diff() took 0.625 seconds
Output for 5.2.10
array_diff() took 0.646 seconds
Output for 5.2.9
array_diff() took 0.937 seconds
Output for 5.2.8
array_diff() took 0.853 seconds
Output for 5.2.7
array_diff() took 1.105 seconds
Output for 5.2.6
array_diff() took 0.754 seconds
Output for 5.2.5
array_diff() took 0.834 seconds
Output for 5.2.4
array_diff() took 0.666 seconds
Output for 5.2.3
array_diff() took 0.645 seconds
Output for 5.2.2
array_diff() took 0.671 seconds
Output for 5.2.1
array_diff() took 0.831 seconds
Output for 5.2.0
array_diff() took 0.632 seconds
Output for 5.1.6
array_diff() took 0.830 seconds
Output for 5.1.5
array_diff() took 0.756 seconds
Output for 5.1.4
array_diff() took 0.731 seconds
Output for 5.1.2
array_diff() took 0.715 seconds
Output for 5.1.1
array_diff() took 0.720 seconds
Output for 5.1.0
array_diff() took 0.758 seconds
Output for 4.3.0 - 5.0.5

Process exited with code 137.