3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { return; } function b() { return false; } $start = microtime(true); for ($i = 0; $i<9999999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<9999999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";
Output for 7.1.0
A :0.18882513046265 B :0.17610883712769
Output for 7.0.14
A :-0.16834402084351 B :-0.18412399291992
Output for 7.0.12
A :0.23625588417053 B :0.18271493911743
Output for 7.0.10
A :0.18403100967407 B :0.1696879863739
Output for 7.0.9
A :0.2041220664978 B :0.2009379863739
Output for 7.0.8
A :0.2038049697876 B :0.19958090782166
Output for 7.0.7
A :0.20856213569641 B :0.20068383216858
Output for 7.0.6
A :0.2335958480835 B :0.20473217964172
Output for 7.0.5
A :0.23416996002197 B :0.21788501739502
Output for 7.0.4
A :0.2162880897522 B :0.20100378990173
Output for 7.0.3
A :0.23457217216492 B :0.22701597213745
Output for 7.0.2
A :0.21713209152222 B :0.21259713172913
Output for 7.0.1
A :0.20622611045837 B :0.2038938999176
Output for 7.0.0
A :0.20096898078918 B :0.20408987998962
Output for 4.3.2, 4.4.2, 5.0.0, 5.0.3 - 5.0.4, hhvm-3.10.0 - 3.12.0

Process exited with code 137.
Output for 5.6.28
A :0.24334287643433 B :0.98002004623413
Output for 5.6.25
A :0.51801705360413 B :0.44634103775024
Output for 5.6.24
A :0.58842515945435 B :0.52876281738281
Output for 5.6.23
A :0.58136200904846 B :0.50570297241211
Output for 5.6.22
A :0.52140021324158 B :0.44720101356506
Output for 5.6.21
A :0.56287884712219 B :0.48539304733276
Output for 5.6.20
A :0.56370496749878 B :0.49062991142273
Output for 5.6.19
A :0.60009503364563 B :0.52343106269836
Output for 5.6.18
A :0.63160395622253 B :0.55389595031738
Output for 5.6.17
A :0.55823302268982 B :0.48176789283752
Output for 5.6.16
A :0.5786988735199 B :0.51889300346375
Output for 5.6.15
A :0.5973060131073 B :0.52598285675049
Output for 5.6.14
A :0.57400178909302 B :0.49802303314209
Output for 5.6.13
A :0.58982586860657 B :0.52842688560486
Output for 5.6.12
A :0.56934189796448 B :0.49991798400879
Output for 5.6.11
A :0.49027514457703 B :0.46183609962463
Output for 5.6.10
A :0.56349396705627 B :0.51703095436096
Output for 5.6.9
A :0.55842089653015 B :0.56104183197021
Output for 5.6.8
A :0.45709800720215 B :0.4563410282135
Output for 5.6.7
A :0.57771492004395 B :0.52571320533752
Output for 5.6.6
A :0.53843688964844 B :0.53811311721802
Output for 5.6.5
A :0.57349705696106 B :0.48894596099854
Output for 5.6.4
A :0.5614321231842 B :0.49100208282471
Output for 5.6.3
A :0.46629405021667 B :0.45012092590332
Output for 5.6.2
A :0.5551860332489 B :0.48910808563232
Output for 5.6.1
A :0.55394196510315 B :0.47179198265076
Output for 5.6.0
A :0.55992698669434 B :0.4993851184845
Output for 5.5.38
A :0.54381990432739 B :0.46745300292969
Output for 5.5.37
A :0.541748046875 B :0.47771406173706
Output for 5.5.36
A :0.55900287628174 B :0.49783205986023
Output for 5.5.35
A :0.47925496101379 B :0.44425702095032
Output for 5.5.34
A :0.5789098739624 B :0.50001001358032
Output for 5.5.33
A :0.66876602172852 B :0.54621315002441
Output for 5.5.32
A :0.65690398216248 B :0.56106019020081
Output for 5.5.31
A :0.56380391120911 B :0.51555609703064
Output for 5.5.30
A :0.56341695785522 B :0.50614905357361
Output for 5.5.29
A :0.56928086280823 B :0.52196598052979
Output for 5.5.28
A :0.56177997589111 B :0.49986910820007
Output for 5.5.27
A :0.61996006965637 B :0.56208515167236
Output for 5.5.26
A :0.67784810066223 B :0.53267002105713
Output for 5.5.25
A :0.59038805961609 B :0.52673196792603
Output for 5.5.24
A :0.54879093170166 B :0.5396089553833
Output for 5.5.23
A :0.59908103942871 B :0.58132696151733
Output for 5.5.22
A :0.56425094604492 B :0.51729893684387
Output for 5.5.21
A :0.55289506912231 B :0.4975209236145
Output for 5.5.20
A :0.55235815048218 B :0.49056386947632
Output for 5.5.19
A :0.55736017227173 B :0.49657511711121
Output for 5.5.18
A :0.55956792831421 B :0.50203919410706
Output for 5.5.16
A :0.61568808555603 B :0.52153301239014
Output for 5.5.15
A :0.57926082611084 B :0.51901888847351
Output for 5.5.14
A :0.58516001701355 B :0.50815296173096
Output for 5.5.13
A :0.55732607841492 B :0.49587798118591
Output for 5.5.12
A :0.52422118186951 B :0.45540404319763
Output for 5.5.11
A :0.53501105308533 B :0.5425238609314
Output for 5.5.10
A :0.56018495559692 B :0.49149203300476
Output for 5.5.9
A :0.55235505104065 B :0.50212383270264
Output for 5.5.8
A :0.52568507194519 B :0.49966287612915
Output for 5.5.7
A :0.53769493103027 B :0.53790497779846
Output for 5.5.6
A :0.44883608818054 B :0.45241498947144
Output for 5.5.5
A :0.46541500091553 B :0.45043897628784
Output for 5.5.4
A :0.52444386482239 B :0.4384491443634
Output for 5.5.3
A :0.6298508644104 B :0.53335499763489
Output for 5.5.2
A :0.58035683631897 B :0.50571894645691
Output for 5.5.1
A :0.55753707885742 B :0.48736691474915
Output for 5.5.0
A :0.48637795448303 B :0.45071315765381
Output for 5.4.45
A :0.49237990379333 B :0.43311285972595
Output for 5.4.44
A :0.55783200263977 B :0.50538301467896
Output for 5.4.43
A :0.54157996177673 B :0.48087096214294
Output for 5.4.42
A :0.56008005142212 B :0.50909399986267
Output for 5.4.41
A :0.88023591041565 B :0.82862401008606
Output for 5.4.40
A :0.54606890678406 B :0.48443794250488
Output for 5.4.39
A :0.5598931312561 B :0.50208497047424
Output for 5.4.38
A :0.552570104599 B :0.49580979347229
Output for 5.4.37
A :0.55457496643066 B :0.47967600822449
Output for 5.4.36
A :0.54853105545044 B :0.45276284217834
Output for 5.4.35
A :0.5534610748291 B :0.48638987541199
Output for 5.4.34
A :0.53984403610229 B :0.48860788345337
Output for 5.4.32
A :0.54022002220154 B :0.46781492233276
Output for 5.4.31
A :0.53474307060242 B :0.45650911331177
Output for 5.4.30
A :0.51499199867249 B :0.47982788085938
Output for 5.4.29
A :0.45264601707458 B :0.43922591209412
Output for 5.4.28
A :0.55590105056763 B :0.48241114616394
Output for 5.4.27
A :0.54827785491943 B :0.55399513244629
Output for 5.4.26
A :0.54543399810791 B :0.55998396873474
Output for 5.4.25
A :0.55752086639404 B :0.48037505149841
Output for 5.4.24
A :0.54233193397522 B :0.47540807723999
Output for 5.4.23
A :0.45265507698059 B :0.43777704238892
Output for 5.4.22
A :0.5263409614563 B :0.45344495773315
Output for 5.4.21
A :0.43918919563293 B :0.43764686584473
Output for 5.4.20
A :0.56996321678162 B :0.5072910785675
Output for 5.4.19
A :0.48414206504822 B :0.44731497764587
Output for 5.4.18
A :0.54209589958191 B :0.47993516921997
Output for 5.4.17
A :0.5577130317688 B :0.48412179946899
Output for 5.4.16
A :0.58732080459595 B :0.6125750541687
Output for 5.4.15
A :0.56587910652161 B :0.50815892219543
Output for 5.4.14
A :0.46882510185242 B :0.43718600273132
Output for 5.4.13
A :0.47536706924438 B :0.43180418014526
Output for 5.4.12
A :0.55279898643494 B :0.49151206016541
Output for 5.4.11
A :0.53968977928162 B :0.56091499328613
Output for 5.4.10
A :0.5826358795166 B :0.47729587554932
Output for 5.4.9
A :0.56156992912292 B :0.49553298950195
Output for 5.4.8
A :0.55333018302917 B :0.54817008972168
Output for 5.4.7
A :0.50374889373779 B :0.44687414169312
Output for 5.4.6
A :0.52234220504761 B :0.53896999359131
Output for 5.4.5
A :0.53425216674805 B :0.45533585548401
Output for 5.4.4
A :0.53367781639099 B :0.44509196281433
Output for 5.4.3
A :0.57071089744568 B :0.47996997833252
Output for 5.4.2
A :0.54192590713501 B :0.47997999191284
Output for 5.4.1
A :0.48535013198853 B :0.43413305282593
Output for 5.4.0
A :0.54040002822876 B :0.47548294067383
Output for 5.3.29
A :1.2439079284668 B :1.1931240558624
Output for 5.3.28
A :1.1784589290619 B :0.97616910934448
Output for 5.3.27
A :1.1317501068115 B :0.97174000740051
Output for 5.3.26
A :1.1477258205414 B :1.0071868896484
Output for 5.3.25
A :1.140946149826 B :0.98720812797546
Output for 5.3.24
A :1.1876029968262 B :1.030189037323
Output for 5.3.23
A :1.1352980136871 B :1.002121925354
Output for 5.3.22
A :1.157438993454 B :0.99414896965027
Output for 5.3.21
A :1.1821351051331 B :0.98722791671753
Output for 5.3.20
A :1.1589689254761 B :0.99085402488708
Output for 5.3.19
A :1.0560121536255 B :0.98948192596436
Output for 5.3.18
A :0.99792504310608 B :0.97743391990662
Output for 5.3.17
A :1.1303489208221 B :0.99515295028687
Output for 5.3.16
A :1.1215889453888 B :0.97183799743652
Output for 5.3.15
A :1.0479440689087 B :0.99034905433655
Output for 5.3.14
A :0.99263596534729 B :0.99212598800659
Output for 5.3.13
A :1.0792570114136 B :1.0182402133942
Output for 5.3.12
A :1.1802101135254 B :1.0118451118469
Output for 5.3.11
A :1.1719579696655 B :1.0105791091919
Output for 5.3.10
A :1.1367678642273 B :0.99545884132385
Output for 5.3.9
A :1.026869058609 B :0.99000787734985
Output for 5.3.8
A :1.15744805336 B :1.1196839809418
Output for 5.3.7
A :1.1723999977112 B :0.99603796005249
Output for 5.3.6
A :1.1361680030823 B :1.144348859787
Output for 5.3.5
A :1.1368341445923 B :0.98388195037842
Output for 5.3.4
A :1.0281438827515 B :0.98709011077881
Output for 5.3.3
A :1.1204249858856 B :1.1592590808868
Output for 5.3.2
A :1.0182750225067 B :1.0054020881653
Output for 5.3.1
A :1.1964612007141 B :1.1829249858856
Output for 5.3.0
A :1.1571619510651 B :0.98388981819153
Output for 5.2.17
A :1.3653461933136
Process exited with code 137.
Output for 5.2.16
A :1.4536061286926
Process exited with code 137.
Output for 5.2.15
A :1.4070229530334
Process exited with code 137.
Output for 5.2.14
A :1.5322489738464
Process exited with code 137.
Output for 5.2.13
A :1.4094109535217
Process exited with code 137.
Output for 5.2.12
A :1.5350570678711
Process exited with code 137.
Output for 5.2.11
A :1.4265320301056
Process exited with code 137.
Output for 5.2.10
A :1.3480339050293
Process exited with code 137.
Output for 5.2.9
A :1.4099950790405
Process exited with code 137.
Output for 5.2.8
A :1.3747508525848
Process exited with code 137.
Output for 5.2.7
A :1.5854520797729
Process exited with code 137.
Output for 5.2.6
A :1.5977799892426
Process exited with code 137.
Output for 5.2.5
A :1.3774101734161
Process exited with code 137.
Output for 5.2.4
A :1.4687390327454
Process exited with code 137.
Output for 5.2.3
A :1.4493041038513
Process exited with code 137.
Output for 5.2.2
A :1.3856630325317
Process exited with code 137.
Output for 5.2.1
A :1.2818048000336
Process exited with code 137.
Output for 5.2.0
A :1.422413110733
Process exited with code 137.
Output for 5.1.6
A :1.6583201885223
Process exited with code 137.
Output for 5.1.5
A :1.4385070800781
Process exited with code 137.
Output for 5.1.4
A :1.419380903244
Process exited with code 137.
Output for 5.1.3
A :1.4624991416931
Process exited with code 137.
Output for 5.1.2
A :1.362016916275
Process exited with code 137.
Output for 5.1.1
A :1.3826370239258
Process exited with code 137.
Output for 5.1.0
A :1.2293109893799
Process exited with code 137.
Output for 5.0.5
A :2.0095548629761
Process exited with code 137.
Output for 5.0.2
A :2.4149091243744
Process exited with code 137.
Output for 5.0.1
A :1.8841140270233
Process exited with code 137.
Output for 4.4.9
A :0.280314
Process exited with code 137.
Output for 4.4.8
A :0.365505
Process exited with code 137.
Output for 4.4.7
A :0.105862
Process exited with code 137.
Output for 4.4.6
A :0.449154
Process exited with code 137.
Output for 4.4.5
A :0.008042
Process exited with code 137.
Output for 4.4.4
A :0.925315
Process exited with code 137.
Output for 4.4.3
A :0.418332
Process exited with code 137.
Output for 4.4.1
A :0.390527
Process exited with code 137.
Output for 4.4.0
A :0.770076
Process exited with code 137.
Output for 4.3.11
A :0.931995
Process exited with code 137.
Output for 4.3.10
A :0.291687
Process exited with code 137.
Output for 4.3.9
A :0.879815
Process exited with code 137.
Output for 4.3.8
A :0.922988
Process exited with code 137.
Output for 4.3.7
A :0.324231
Process exited with code 137.
Output for 4.3.6
A :0.74128
Process exited with code 137.
Output for 4.3.5
A :0.894792
Process exited with code 137.
Output for 4.3.4
A :0.882339
Process exited with code 137.
Output for 4.3.3
A :0.84168
Process exited with code 137.
Output for 4.3.1
A :0.267744
Process exited with code 137.
Output for 4.3.0
A :0.148745
Process exited with code 137.