3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = range(1,100000); $start = microtime(true); foreach ($array as $key => $value) { $array[$key] += 1; // Invokes COW } $end = microtime(true); $time = $end - $start; printf("Completed in %.6f seconds\n", $time);
Output for 7.1.0
Completed in 0.003110 seconds
Output for 7.0.14
Completed in 0.005270 seconds
Output for 7.0.12
Completed in 0.005429 seconds
Output for 7.0.6
Completed in 0.005750 seconds
Output for 7.0.5
Completed in 0.005890 seconds
Output for 7.0.4
Completed in 0.005434 seconds
Output for 7.0.3
Completed in 0.008826 seconds
Output for 7.0.2
Completed in 0.012241 seconds
Output for 7.0.1
Completed in 0.004651 seconds
Output for 7.0.0
Completed in 0.004207 seconds
Output for hhvm-3.12.0
Completed in 0.057781 seconds
Output for hhvm-3.10.0
Completed in 0.008639 seconds
Output for 5.6.28
Completed in 0.026568 seconds
Output for 5.6.21
Completed in 0.019411 seconds
Output for 5.6.20
Completed in 0.026766 seconds
Output for 5.6.19
Completed in 0.023909 seconds
Output for 5.6.18
Completed in 0.021486 seconds
Output for 5.6.17
Completed in 0.017932 seconds
Output for 5.6.16
Completed in 0.017143 seconds
Output for 5.6.15
Completed in 0.018000 seconds
Output for 5.6.14
Completed in 0.024538 seconds
Output for 5.6.13
Completed in 0.021856 seconds
Output for 5.6.12
Completed in 0.026183 seconds
Output for 5.6.11
Completed in 0.023384 seconds
Output for 5.6.10
Completed in 0.026098 seconds
Output for 5.6.9
Completed in 0.022681 seconds
Output for 5.6.8
Completed in 0.026161 seconds
Output for 5.5.35
Completed in 0.022313 seconds
Output for 5.5.34
Completed in 0.025447 seconds
Output for 5.5.33
Completed in 0.026288 seconds
Output for 5.5.32
Completed in 0.023982 seconds
Output for 5.5.31
Completed in 0.023837 seconds
Output for 5.5.30
Completed in 0.022236 seconds
Output for 5.5.29
Completed in 0.021717 seconds
Output for 5.5.28
Completed in 0.025044 seconds
Output for 5.5.27
Completed in 0.019609 seconds
Output for 5.5.26
Completed in 0.018548 seconds
Output for 5.5.25
Completed in 0.024851 seconds
Output for 5.5.24
Completed in 0.025126 seconds
Output for 5.4.45
Completed in 0.026470 seconds
Output for 5.4.44
Completed in 0.026104 seconds
Output for 5.4.43
Completed in 0.021751 seconds
Output for 5.4.42
Completed in 0.019685 seconds
Output for 5.4.41
Completed in 0.019547 seconds
Output for 5.4.40
Completed in 0.025928 seconds
Output for 5.4.39
Completed in 0.025898 seconds
Output for 5.4.38
Completed in 0.026541 seconds
Output for 5.4.37
Completed in 0.025905 seconds
Output for 5.4.36
Completed in 0.021623 seconds
Output for 5.4.35
Completed in 0.019212 seconds
Output for 5.4.34
Completed in 0.019043 seconds
Output for 5.4.32
Completed in 0.020557 seconds
Output for 5.4.31
Completed in 0.019397 seconds
Output for 5.4.30
Completed in 0.025960 seconds
Output for 5.4.29
Completed in 0.019734 seconds
Output for 5.4.28
Completed in 0.019130 seconds
Output for 5.4.27
Completed in 0.023416 seconds
Output for 5.4.26
Completed in 0.018925 seconds
Output for 5.4.25
Completed in 0.025549 seconds
Output for 5.4.24
Completed in 0.026885 seconds
Output for 5.4.23
Completed in 0.025614 seconds
Output for 5.4.22
Completed in 0.025858 seconds
Output for 5.4.21
Completed in 0.025414 seconds
Output for 5.4.20
Completed in 0.023578 seconds
Output for 5.4.19
Completed in 0.027036 seconds
Output for 5.4.18
Completed in 0.024796 seconds
Output for 5.4.17
Completed in 0.023239 seconds
Output for 5.4.16
Completed in 0.027959 seconds
Output for 5.4.15
Completed in 0.021471 seconds
Output for 5.4.14
Completed in 0.025499 seconds
Output for 5.4.13
Completed in 0.018761 seconds
Output for 5.4.12
Completed in 0.018323 seconds
Output for 5.4.11
Completed in 0.027267 seconds
Output for 5.4.10
Completed in 0.028489 seconds
Output for 5.4.9
Completed in 0.024822 seconds
Output for 5.4.8
Completed in 0.025480 seconds
Output for 5.4.7
Completed in 0.025498 seconds
Output for 5.4.6
Completed in 0.026659 seconds
Output for 5.4.5
Completed in 0.025266 seconds
Output for 5.4.4
Completed in 0.026869 seconds
Output for 5.4.3
Completed in 0.020747 seconds
Output for 5.4.2
Completed in 0.025712 seconds
Output for 5.4.1
Completed in 0.021453 seconds
Output for 5.4.0
Completed in 0.023287 seconds
Output for 5.3.29
Completed in 0.026927 seconds
Output for 5.3.28
Completed in 0.019393 seconds
Output for 5.3.27
Completed in 0.026549 seconds
Output for 5.3.26
Completed in 0.023452 seconds
Output for 5.3.25
Completed in 0.023819 seconds
Output for 5.3.24
Completed in 0.024960 seconds
Output for 5.3.23
Completed in 0.019313 seconds
Output for 5.3.22
Completed in 0.019541 seconds
Output for 5.3.21
Completed in 0.020050 seconds
Output for 5.3.20
Completed in 0.025488 seconds
Output for 5.3.19
Completed in 0.025298 seconds
Output for 5.3.18
Completed in 0.024399 seconds
Output for 5.3.17
Completed in 0.019442 seconds
Output for 5.3.16
Completed in 0.025028 seconds
Output for 5.3.15
Completed in 0.026322 seconds
Output for 5.3.14
Completed in 0.025882 seconds
Output for 5.3.13
Completed in 0.019705 seconds
Output for 5.3.12
Completed in 0.027793 seconds
Output for 5.3.11
Completed in 0.021133 seconds
Output for 5.3.10
Completed in 0.024742 seconds
Output for 5.3.9
Completed in 0.020574 seconds
Output for 5.3.8
Completed in 0.022943 seconds
Output for 5.3.7
Completed in 0.025082 seconds
Output for 5.3.6
Completed in 0.022506 seconds
Output for 5.3.5
Completed in 0.026824 seconds
Output for 5.3.4
Completed in 0.027775 seconds
Output for 5.3.3
Completed in 0.029331 seconds
Output for 5.3.2
Completed in 0.027663 seconds
Output for 5.3.1
Completed in 0.026963 seconds
Output for 5.3.0
Completed in 0.025360 seconds
Output for 5.2.17
Completed in 0.031549 seconds
Output for 5.2.16
Completed in 0.029679 seconds
Output for 5.2.15
Completed in 0.031361 seconds
Output for 5.2.14
Completed in 0.023130 seconds
Output for 5.2.13
Completed in 0.023539 seconds
Output for 5.2.12
Completed in 0.031743 seconds
Output for 5.2.11
Completed in 0.022349 seconds
Output for 5.2.10
Completed in 0.030715 seconds
Output for 5.2.9
Completed in 0.030107 seconds
Output for 5.2.8
Completed in 0.031459 seconds
Output for 5.2.7
Completed in 0.023503 seconds
Output for 5.2.6
Completed in 0.030206 seconds
Output for 5.2.5
Completed in 0.036043 seconds
Output for 5.2.4
Completed in 0.031008 seconds
Output for 5.2.3
Completed in 0.031462 seconds
Output for 5.2.2
Completed in 0.038420 seconds
Output for 5.2.1
Completed in 0.028098 seconds
Output for 5.2.0
Completed in 0.027954 seconds
Output for 5.1.6
Completed in 0.025936 seconds
Output for 5.1.5
Completed in 0.026122 seconds
Output for 5.1.4
Completed in 0.035476 seconds
Output for 5.1.3
Completed in 0.038180 seconds
Output for 5.1.2
Completed in 0.033840 seconds
Output for 5.1.1
Completed in 0.035741 seconds
Output for 5.1.0
Completed in 0.034771 seconds
Output for 5.0.5
Completed in 0.068034 seconds
Output for 5.0.4
Completed in 0.053455 seconds
Output for 5.0.3
Completed in 0.053010 seconds
Output for 5.0.2
Completed in 0.046246 seconds
Output for 5.0.1
Completed in 0.049475 seconds
Output for 5.0.0
Completed in 0.046051 seconds
Output for 4.4.9
Completed in 0.068608 seconds
Output for 4.4.8
Completed in 0.053215 seconds
Output for 4.4.7
Completed in 0.069442 seconds
Output for 4.4.6
Completed in 0.066654 seconds
Output for 4.4.5
Completed in 0.045727 seconds
Output for 4.4.4
Completed in 0.060048 seconds
Output for 4.4.3
Completed in 0.046086 seconds
Output for 4.4.2
Completed in 0.055558 seconds
Output for 4.4.1
Completed in -0.931711 seconds
Output for 4.4.0
Completed in 0.050422 seconds
Output for 4.3.11
Completed in 0.062851 seconds
Output for 4.3.10
Completed in 0.062943 seconds
Output for 4.3.9
Completed in 0.046149 seconds
Output for 4.3.8
Completed in 0.058209 seconds
Output for 4.3.7
Completed in 0.060244 seconds
Output for 4.3.6
Completed in 0.062520 seconds
Output for 4.3.5
Completed in -0.923444 seconds
Output for 4.3.4
Completed in 0.054830 seconds
Output for 4.3.3
Completed in 0.044280 seconds
Output for 4.3.2
Completed in 0.064760 seconds
Output for 4.3.1
Completed in 0.065990 seconds
Output for 4.3.0
Completed in 0.075721 seconds