3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); for($i=0;$i<1000;$i++) { $p = hash('sha512', 'toto'); } echo'<hr>'; echo round(chrono()-$debut,10);
Output for 7.1.0
<hr>0.0014681816
Output for 7.0.14
<hr>0.0014619827
Output for 7.0.6
<hr>0.0012040138
Output for 7.0.5
<hr>0.0007550716
Output for 7.0.4
<hr>0.0010960102
Output for 7.0.3
<hr>0.0011329651
Output for 7.0.2
<hr>0.0011508465
Output for 7.0.1
<hr>0.0008230209
Output for 7.0.0
<hr>0.0008509159
Output for hhvm-3.12.0
<hr>0.0010709763
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
<hr>0.0016379356
Output for 5.6.21
<hr>0.0009789467
Output for 5.6.20
<hr>0.0009660721
Output for 5.6.19
<hr>0.000854969
Output for 5.6.18
<hr>0.0013699532
Output for 5.6.17
<hr>0.000882864
Output for 5.6.16
<hr>0.0010120869
Output for 5.6.15
<hr>0.0014197826
Output for 5.6.14
<hr>0.0011761189
Output for 5.6.13
<hr>0.0010449886
Output for 5.6.12
<hr>0.0010459423
Output for 5.6.11
<hr>0.0014600754
Output for 5.6.10
<hr>0.0014419556
Output for 5.6.9
<hr>0.0013501644
Output for 5.6.8
<hr>0.0015218258
Output for 5.6.7
<hr>0.0009179115
Output for 5.5.35
<hr>0.0013799667
Output for 5.5.34
<hr>0.0010669231
Output for 5.4.31, 5.5.33
<hr>0.0010640621
Output for 5.5.32
<hr>0.0009231567
Output for 5.5.31
<hr>0.0010590553
Output for 5.5.30
<hr>0.0009329319
Output for 5.5.29
<hr>0.0009009838
Output for 5.5.28
<hr>0.0010180473
Output for 5.5.27
<hr>0.000895977
Output for 5.5.26
<hr>0.0014500618
Output for 5.5.25
<hr>0.0009810925
Output for 5.5.24
<hr>0.0009288788
Output for 5.4.45
<hr>0.0012979507
Output for 5.4.44
<hr>0.0014059544
Output for 5.4.14, 5.4.43
<hr>0.0012171268
Output for 5.4.42
<hr>0.0012629032
Output for 5.4.41
<hr>0.0013329983
Output for 5.4.40
<hr>0.0022139549
Output for 5.4.39
<hr>0.0014131069
Output for 5.4.38
<hr>0.0013570786
Output for 5.4.37
<hr>0.0012609959
Output for 5.4.36
<hr>0.0040771961
Output for 5.4.35
<hr>0.0013520718
Output for 5.4.34
<hr>0.0037338734
Output for 5.4.32
<hr>0.0010111332
Output for 5.4.30
<hr>0.0010261536
Output for 5.4.29
<hr>0.0009880066
Output for 5.4.28
<hr>0.0009720325
Output for 5.4.27
<hr>0.0010859966
Output for 5.4.26
<hr>0.0009939671
Output for 5.4.25
<hr>0.0010309219
Output for 5.4.24
<hr>0.0010049343
Output for 5.4.23
<hr>0.0010068417
Output for 5.4.22
<hr>0.0009407997
Output for 5.4.21
<hr>0.0010480881
Output for 5.4.20
<hr>0.0009980202
Output for 5.4.19
<hr>0.0009710789
Output for 5.4.18
<hr>0.0014328957
Output for 5.4.17
<hr>0.0012571812
Output for 5.4.5, 5.4.16
<hr>0.0012669563
Output for 5.4.15
<hr>0.0011949539
Output for 5.4.13
<hr>0.0011777878
Output for 5.4.12
<hr>0.0014660358
Output for 5.4.11
<hr>0.001251936
Output for 5.4.10
<hr>0.0012249947
Output for 5.4.9
<hr>0.0012140274
Output for 5.4.8
<hr>0.0012118816
Output for 5.4.7
<hr>0.0012497902
Output for 5.4.6
<hr>0.0012381077
Output for 5.4.4
<hr>0.0012321472
Output for 5.4.3
<hr>0.0012340546
Output for 5.4.2
<hr>0.0013680458
Output for 5.4.1
<hr>0.0012180805
Output for 5.4.0
<hr>0.0011930466
Output for 5.3.29
<hr>0.0010430813
Output for 5.3.28
<hr>0.0010318756
Output for 5.3.27
<hr>0.0012769699
Output for 5.3.26
<hr>0.0012681484
Output for 5.2.10, 5.3.25
<hr>0.0012550354
Output for 5.3.24
<hr>0.0013301373
Output for 5.3.15, 5.3.23
<hr>0.0013358593
Output for 5.3.22
<hr>0.0020420551
Output for 5.3.21
<hr>0.0013718605
Output for 5.3.20
<hr>0.0016131401
Output for 5.3.19
<hr>0.0013101101
Output for 5.3.18
<hr>0.0013821125
Output for 5.3.17
<hr>0.0012700558
Output for 5.3.8, 5.3.16
<hr>0.0012831688
Output for 5.3.14
<hr>0.0013079643
Output for 5.3.13
<hr>0.001283884
Output for 5.3.12
<hr>0.002051115
Output for 5.3.11
<hr>0.0012719631
Output for 5.3.10
<hr>0.0012729168
Output for 5.3.9
<hr>0.0012528896
Output for 5.2.15, 5.3.7
<hr>0.0012869835
Output for 5.3.6
<hr>0.0012841225
Output for 5.3.5
<hr>0.0012559891
Output for 5.3.4
<hr>0.001281023
Output for 5.3.3
<hr>0.0016129017
Output for 5.3.2
<hr>0.0013179779
Output for 5.3.1
<hr>0.0012350082
Output for 5.3.0
<hr>0.0012879372
Output for 5.2.17
<hr>0.001324892
Output for 5.2.16
<hr>0.0013110638
Output for 5.2.14
<hr>0.0013139248
Output for 5.2.13
<hr>0.0013070107
Output for 5.2.12
<hr>0.0013868809
Output for 5.2.11
<hr>0.0013029575
Output for 5.2.9
<hr>0.0013320446
Output for 5.2.8
<hr>0.001306057
Output for 5.2.7
<hr>0.0012888908
Output for 5.2.6
<hr>0.00131917
Output for 5.2.5
<hr>0.0012590885
Output for 5.2.4
<hr>0.0013160706
Output for 5.2.3
<hr>0.0012598038
Output for 5.2.2
<hr>0.0013849735
Output for 5.2.1
<hr>0.0013310909
Output for 5.2.0
<hr>0.001347065
Output for 5.1.6
<hr>0.0015678406
Output for 5.1.5
<hr>0.0013930798
Output for 5.1.4
<hr>0.0014181137
Output for 5.1.3
<hr>0.0014178753
Output for 5.1.2
<hr>0.0014958382
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash() in /in/0YEhZ on line 11
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash() in /in/0YEhZ on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash() in /in/0YEhZ on line 11
Process exited with code 255.
Output for 4.3.1
Fatal error: Call to undefined function: hash() in /in/0YEhZ on line 11
Output for 4.3.0
Fatal error: Call to undefined function: hash() in /in/6BI0v on line 11