3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function no_suppress() { $a = 0; $b = new stdClass; $a = (isset($b->asdf) ? $b->asdf : null); } function suppress() { $a = 0; $b = new stdClass; $a = @$b->asdf ? $b->asdf : null; } function do_test($suppress = false, $loops = 1000000) { if($suppress) { echo "starting suppress...\n"; $start = microtime(true); for($i = 0; $i < $loops; $i++) { suppress(); } $end = microtime(true); } else { echo "starting no_suppress...\n"; $start = microtime(true); for($i = 0; $i < $loops; $i++) { no_suppress(true); } $end = microtime(true); } echo "ended: " . ($end - $start) . "\n"; } do_test(true, 10000); do_test(false, 10000);
Output for 7.1.0
starting suppress... ended: 0.0029289722442627 starting no_suppress... ended: 0.00084996223449707
Output for 7.0.14
starting suppress... ended: 0.005687952041626 starting no_suppress... ended: 0.0019350051879883
Output for 7.0.12
starting suppress... ended: 0.0047159194946289 starting no_suppress... ended: 0.0017180442810059
Output for 7.0.6
starting suppress... ended: 0.0044550895690918 starting no_suppress... ended: 0.0013899803161621
Output for 7.0.5
starting suppress... ended: 0.0044338703155518 starting no_suppress... ended: 0.0014700889587402
Output for 7.0.4
starting suppress... ended: 0.0031068325042725 starting no_suppress... ended: 0.0010149478912354
Output for 7.0.3
starting suppress... ended: 0.0028078556060791 starting no_suppress... ended: 0.00090885162353516
Output for 7.0.2
starting suppress... ended: 0.0042839050292969 starting no_suppress... ended: 0.0013630390167236
Output for 7.0.1
starting suppress... ended: 0.0028998851776123 starting no_suppress... ended: 0.00090503692626953
Output for 7.0.0
starting suppress... ended: 0.0029029846191406 starting no_suppress... ended: 0.00090599060058594
Output for hhvm-3.12.0
starting suppress... ended: 0.0026788711547852 starting no_suppress... ended: 0.0025861263275146
Output for hhvm-3.10.0
starting suppress... ended: 0.0056731700897217 starting no_suppress... ended: 0.0033419132232666
Output for 5.6.28
starting suppress... ended: 0.009972095489502 starting no_suppress... ended: 0.0035979747772217
Output for 5.6.21
starting suppress... ended: 0.0058691501617432 starting no_suppress... ended: 0.0020911693572998
Output for 5.6.20
starting suppress... ended: 0.0070638656616211 starting no_suppress... ended: 0.0025951862335205
Output for 5.6.19
starting suppress... ended: 0.007422924041748 starting no_suppress... ended: 0.0029489994049072
Output for 5.6.18
starting suppress... ended: 0.0080080032348633 starting no_suppress... ended: 0.0029280185699463
Output for 5.6.17
starting suppress... ended: 0.0055890083312988 starting no_suppress... ended: 0.0021131038665771
Output for 5.6.16
starting suppress... ended: 0.0056781768798828 starting no_suppress... ended: 0.0021541118621826
Output for 5.6.15
starting suppress... ended: 0.0075919628143311 starting no_suppress... ended: 0.002849817276001
Output for 5.6.14
starting suppress... ended: 0.0091099739074707 starting no_suppress... ended: 0.0032939910888672
Output for 5.6.13
starting suppress... ended: 0.0090031623840332 starting no_suppress... ended: 0.0032229423522949
Output for 5.6.12
starting suppress... ended: 0.0088191032409668 starting no_suppress... ended: 0.0032269954681396
Output for 5.6.11
starting suppress... ended: 0.0089719295501709 starting no_suppress... ended: 0.0026068687438965
Output for 5.6.10
starting suppress... ended: 0.005774974822998 starting no_suppress... ended: 0.0021297931671143
Output for 5.6.9
starting suppress... ended: 0.0093379020690918 starting no_suppress... ended: 0.003248929977417
Output for 5.6.8
starting suppress... ended: 0.0089869499206543 starting no_suppress... ended: 0.0032329559326172
Output for 5.6.7
starting suppress... ended: 0.010197877883911 starting no_suppress... ended: 0.0034749507904053
Output for 5.5.35
starting suppress... ended: 0.0087680816650391 starting no_suppress... ended: 0.0032968521118164
Output for 5.5.34
starting suppress... ended: 0.0082681179046631 starting no_suppress... ended: 0.0029821395874023
Output for 5.5.33
starting suppress... ended: 0.0055050849914551 starting no_suppress... ended: 0.0022099018096924
Output for 5.5.32
starting suppress... ended: 0.0061790943145752 starting no_suppress... ended: 0.0022580623626709
Output for 5.5.31
starting suppress... ended: 0.0078740119934082 starting no_suppress... ended: 0.0028390884399414
Output for 5.5.30
starting suppress... ended: 0.0093851089477539 starting no_suppress... ended: 0.0032570362091064
Output for 5.5.29
starting suppress... ended: 0.0076119899749756 starting no_suppress... ended: 0.0030388832092285
Output for 5.5.28
starting suppress... ended: 0.006162166595459 starting no_suppress... ended: 0.0024888515472412
Output for 5.5.27
starting suppress... ended: 0.0074331760406494 starting no_suppress... ended: 0.0027430057525635
Output for 5.5.26
starting suppress... ended: 0.0081241130828857 starting no_suppress... ended: 0.0030879974365234
Output for 5.5.25
starting suppress... ended: 0.009282112121582 starting no_suppress... ended: 0.0034739971160889
Output for 5.5.24
starting suppress... ended: 0.0074079036712646 starting no_suppress... ended: 0.0026788711547852
Output for 5.4.45
starting suppress... ended: 0.0073630809783936 starting no_suppress... ended: 0.003087043762207
Output for 5.4.44
starting suppress... ended: 0.0094180107116699 starting no_suppress... ended: 0.0030531883239746
Output for 5.4.43
starting suppress... ended: 0.0054130554199219 starting no_suppress... ended: 0.0022830963134766
Output for 5.4.42
starting suppress... ended: 0.0054020881652832 starting no_suppress... ended: 0.0022759437561035
Output for 5.4.41
starting suppress... ended: 0.0054929256439209 starting no_suppress... ended: 0.0023090839385986
Output for 5.4.40
starting suppress... ended: 0.0056478977203369 starting no_suppress... ended: 0.0023560523986816
Output for 5.4.39
starting suppress... ended: 0.0082809925079346 starting no_suppress... ended: 0.0034308433532715
Output for 5.4.38
starting suppress... ended: 0.0085940361022949 starting no_suppress... ended: 0.0036039352416992
Output for 5.4.37
starting suppress... ended: 0.0072858333587646 starting no_suppress... ended: 0.0030419826507568
Output for 5.4.36
starting suppress... ended: 0.007439136505127 starting no_suppress... ended: 0.0029921531677246
Output for 5.4.35
starting suppress... ended: 0.0074660778045654 starting no_suppress... ended: 0.0029609203338623
Output for 5.4.34
starting suppress... ended: 0.0086920261383057 starting no_suppress... ended: 0.0034611225128174
Output for 5.4.32
starting suppress... ended: 0.0087459087371826 starting no_suppress... ended: 0.0035228729248047
Output for 5.4.31
starting suppress... ended: 0.0074019432067871 starting no_suppress... ended: 0.0030298233032227
Output for 5.4.30
starting suppress... ended: 0.0075259208679199 starting no_suppress... ended: 0.0034120082855225
Output for 5.4.29
starting suppress... ended: 0.0087471008300781 starting no_suppress... ended: 0.0034329891204834
Output for 5.4.28
starting suppress... ended: 0.0083549022674561 starting no_suppress... ended: 0.0033960342407227
Output for 5.4.27
starting suppress... ended: 0.0057580471038818 starting no_suppress... ended: 0.0023629665374756
Output for 5.4.26
starting suppress... ended: 0.0054409503936768 starting no_suppress... ended: 0.002302885055542
Output for 5.4.25
starting suppress... ended: 0.0082559585571289 starting no_suppress... ended: 0.0032918453216553
Output for 5.4.24
starting suppress... ended: 0.0062248706817627 starting no_suppress... ended: 0.0022900104522705
Output for 5.4.23
starting suppress... ended: 0.0053648948669434 starting no_suppress... ended: 0.0023210048675537
Output for 5.4.22
starting suppress... ended: 0.0082039833068848 starting no_suppress... ended: 0.0036540031433105
Output for 5.4.21
starting suppress... ended: 0.0081140995025635 starting no_suppress... ended: 0.0034501552581787
Output for 5.4.20
starting suppress... ended: 0.0070321559906006 starting no_suppress... ended: 0.0033950805664062
Output for 5.4.19
starting suppress... ended: 0.0087959766387939 starting no_suppress... ended: 0.0035600662231445
Output for 5.4.18
starting suppress... ended: 0.006540060043335 starting no_suppress... ended: 0.0026571750640869
Output for 5.4.17
starting suppress... ended: 0.0067040920257568 starting no_suppress... ended: 0.002810001373291
Output for 5.4.16
starting suppress... ended: 0.0059671401977539 starting no_suppress... ended: 0.0025088787078857
Output for 5.4.15
starting suppress... ended: 0.0087039470672607 starting no_suppress... ended: 0.0036139488220215
Output for 5.4.14
starting suppress... ended: 0.0076389312744141 starting no_suppress... ended: 0.0033149719238281
Output for 5.4.13
starting suppress... ended: 0.0088710784912109 starting no_suppress... ended: 0.0036861896514893
Output for 5.4.12
starting suppress... ended: 0.0090160369873047 starting no_suppress... ended: 0.0036768913269043
Output for 5.4.11
starting suppress... ended: 0.0053679943084717 starting no_suppress... ended: 0.0022919178009033
Output for 5.4.10
starting suppress... ended: 0.0081081390380859 starting no_suppress... ended: 0.003309965133667
Output for 5.4.9
starting suppress... ended: 0.0088398456573486 starting no_suppress... ended: 0.0036699771881104
Output for 5.4.8
starting suppress... ended: 0.0054070949554443 starting no_suppress... ended: 0.0023190975189209
Output for 5.4.7
starting suppress... ended: 0.0054550170898438 starting no_suppress... ended: 0.0023491382598877
Output for 5.4.6
starting suppress... ended: 0.010114908218384 starting no_suppress... ended: 0.0040678977966309
Output for 5.4.5
starting suppress... ended: 0.0073840618133545 starting no_suppress... ended: 0.0030989646911621
Output for 5.4.4
starting suppress... ended: 0.0055210590362549 starting no_suppress... ended: 0.0022549629211426
Output for 5.4.3
starting suppress... ended: 0.0055680274963379 starting no_suppress... ended: 0.0022420883178711
Output for 5.4.2
starting suppress... ended: 0.0057101249694824 starting no_suppress... ended: 0.0023550987243652
Output for 5.4.1
starting suppress... ended: 0.0092458724975586 starting no_suppress... ended: 0.0037059783935547
Output for 5.4.0
starting suppress... ended: 0.0085880756378174 starting no_suppress... ended: 0.0036051273345947
Output for 5.3.29
starting suppress... ended: 0.011202096939087 starting no_suppress... ended: 0.004817008972168
Output for 5.3.28
starting suppress... ended: 0.0080850124359131 starting no_suppress... ended: 0.0048189163208008
Output for 5.3.27
starting suppress... ended: 0.0097720623016357 starting no_suppress... ended: 0.0035560131072998
Output for 5.3.26
starting suppress... ended: 0.010234832763672 starting no_suppress... ended: 0.0046968460083008
Output for 5.3.25
starting suppress... ended: 0.013330936431885 starting no_suppress... ended: 0.0048928260803223
Output for 5.3.24
starting suppress... ended: 0.0075900554656982 starting no_suppress... ended: 0.0032839775085449
Output for 5.3.23
starting suppress... ended: 0.012519836425781 starting no_suppress... ended: 0.0048890113830566
Output for 5.3.22
starting suppress... ended: 0.012518882751465 starting no_suppress... ended: 0.0051460266113281
Output for 5.3.21
starting suppress... ended: 0.012861967086792 starting no_suppress... ended: 0.0050809383392334
Output for 5.3.20
starting suppress... ended: 0.0088508129119873 starting no_suppress... ended: 0.0037028789520264
Output for 5.3.19
starting suppress... ended: 0.013818979263306 starting no_suppress... ended: 0.0049700736999512
Output for 5.3.18
starting suppress... ended: 0.010191917419434 starting no_suppress... ended: 0.004019021987915
Output for 5.3.17
starting suppress... ended: 0.0076560974121094 starting no_suppress... ended: 0.0031979084014893
Output for 5.3.16
starting suppress... ended: 0.010484933853149 starting no_suppress... ended: 0.0044629573822021
Output for 5.3.15
starting suppress... ended: 0.01253604888916 starting no_suppress... ended: 0.0051329135894775
Output for 5.3.14
starting suppress... ended: 0.008915901184082 starting no_suppress... ended: 0.0037600994110107
Output for 5.3.13
starting suppress... ended: 0.0090339183807373 starting no_suppress... ended: 0.0037550926208496
Output for 5.3.12
starting suppress... ended: 0.010844945907593 starting no_suppress... ended: 0.0046350955963135
Output for 5.3.11
starting suppress... ended: 0.011813879013062 starting no_suppress... ended: 0.0051980018615723
Output for 5.3.10
starting suppress... ended: 0.010538101196289 starting no_suppress... ended: 0.0044100284576416
Output for 5.3.9
starting suppress... ended: 0.0075678825378418 starting no_suppress... ended: 0.0035049915313721
Output for 5.3.8
starting suppress... ended: 0.011204957962036 starting no_suppress... ended: 0.0049290657043457
Output for 5.3.7
starting suppress... ended: 0.012486219406128 starting no_suppress... ended: 0.0050711631774902
Output for 5.3.6
starting suppress... ended: 0.012779951095581 starting no_suppress... ended: 0.005267858505249
Output for 5.3.5
starting suppress... ended: 0.01152491569519 starting no_suppress... ended: 0.0050039291381836
Output for 5.3.4
starting suppress... ended: 0.012311220169067 starting no_suppress... ended: 0.0051600933074951
Output for 5.3.3
starting suppress... ended: 0.0099039077758789 starting no_suppress... ended: 0.0043220520019531
Output for 5.3.2
starting suppress... ended: 0.0078239440917969 starting no_suppress... ended: 0.00337815284729
Output for 5.3.1
starting suppress... ended: 0.010856866836548 starting no_suppress... ended: 0.004188060760498
Output for 5.3.0
starting suppress... ended: 0.011066198348999 starting no_suppress... ended: 0.0047829151153564
Output for 5.2.17
starting suppress... ended: 0.0090219974517822 starting no_suppress... ended: 0.0047860145568848
Output for 5.2.16
starting suppress... ended: 0.012299060821533 starting no_suppress... ended: 0.0061590671539307
Output for 5.2.15
starting suppress... ended: 0.013520956039429 starting no_suppress... ended: 0.0066769123077393
Output for 5.2.14
starting suppress... ended: 0.010787963867188 starting no_suppress... ended: 0.0057790279388428
Output for 5.2.13
starting suppress... ended: 0.01134204864502 starting no_suppress... ended: 0.0060098171234131
Output for 5.2.12
starting suppress... ended: 0.010999202728271 starting no_suppress... ended: 0.0049381256103516
Output for 5.2.11
starting suppress... ended: 0.012891054153442 starting no_suppress... ended: 0.0069248676300049
Output for 5.2.10
starting suppress... ended: 0.012259006500244 starting no_suppress... ended: 0.0064489841461182
Output for 5.2.9
starting suppress... ended: 0.013411998748779 starting no_suppress... ended: 0.0068528652191162
Output for 5.2.8
starting suppress... ended: 0.01190710067749 starting no_suppress... ended: 0.0063080787658691
Output for 5.2.7
starting suppress... ended: 0.0082859992980957 starting no_suppress... ended: 0.0042619705200195
Output for 5.2.6
starting suppress... ended: 0.014394998550415 starting no_suppress... ended: 0.0066208839416504
Output for 5.2.5
starting suppress... ended: 0.01322603225708 starting no_suppress... ended: 0.0068199634552002
Output for 5.2.4
starting suppress... ended: 0.011943101882935 starting no_suppress... ended: 0.0064210891723633
Output for 5.2.3
starting suppress... ended: 0.012484073638916 starting no_suppress... ended: 0.0079219341278076
Output for 5.2.2
starting suppress... ended: 0.012428045272827 starting no_suppress... ended: 0.0056500434875488
Output for 5.2.1
starting suppress... ended: 0.01498007774353 starting no_suppress... ended: 0.0069549083709717
Output for 5.2.0
starting suppress... ended: 0.0078890323638916 starting no_suppress... ended: 0.0041630268096924
Output for 5.1.6
starting suppress... ended: 0.01423192024231 starting no_suppress... ended: 0.0067760944366455
Output for 5.1.5
starting suppress... ended: 0.015275955200195 starting no_suppress... ended: 0.0070459842681885
Output for 5.1.4
starting suppress... ended: 0.014040946960449 starting no_suppress... ended: 0.0071361064910889
Output for 5.1.3
starting suppress... ended: 0.013025045394897 starting no_suppress... ended: 0.006342887878418
Output for 5.1.2
starting suppress... ended: 0.015825033187866 starting no_suppress... ended: 0.0079500675201416
Output for 5.1.1
starting suppress... ended: 0.014724016189575 starting no_suppress... ended: 0.0075318813323975
Output for 5.1.0
starting suppress... ended: 0.010349988937378 starting no_suppress... ended: 0.0054140090942383
Output for 5.0.5
starting suppress... ended: 0.017138004302979 starting no_suppress... ended: 0.010648012161255
Output for 5.0.4
starting suppress... ended: 0.012012004852295 starting no_suppress... ended: 0.0075690746307373
Output for 5.0.3
starting suppress... ended: 0.016036987304688 starting no_suppress... ended: 0.0097701549530029
Output for 5.0.2
starting suppress... ended: 0.014426231384277 starting no_suppress... ended: 0.0089051723480225
Output for 5.0.1
starting suppress... ended: 0.013408184051514 starting no_suppress... ended: 0.0081868171691895
Output for 5.0.0
starting suppress... ended: 0.010159969329834 starting no_suppress... ended: 0.0066730976104736
Output for 4.4.9
starting suppress... ended: 0.01829 starting no_suppress... ended: 0.011776
Output for 4.4.8
starting suppress... ended: 0.018054 starting no_suppress... ended: 0.010592
Output for 4.4.7
starting suppress... ended: 0.019264 starting no_suppress... ended: 0.011148
Output for 4.4.6
starting suppress... ended: 0.018189 starting no_suppress... ended: 0.010765
Output for 4.4.5
starting suppress... ended: 0.023724 starting no_suppress... ended: 0.011074
Output for 4.4.4
starting suppress... ended: 0.013313 starting no_suppress... ended: 0.008154
Output for 4.4.3
starting suppress... ended: 0.015247 starting no_suppress... ended: 0.010063
Output for 4.4.2
starting suppress... ended: 0.016095 starting no_suppress... ended: 0.0095350000000001
Output for 4.4.1
starting suppress... ended: 0.018738 starting no_suppress... ended: 0.007302
Output for 4.4.0
starting suppress... ended: 0.015125 starting no_suppress... ended: 0.00876
Output for 4.3.11
starting suppress... ended: 0.0123 starting no_suppress... ended: 0.007313
Output for 4.3.10
starting suppress... ended: 0.019604 starting no_suppress... ended: 0.010496
Output for 4.3.9
starting suppress... ended: 0.02014 starting no_suppress... ended: 0.010527
Output for 4.3.8
starting suppress... ended: -0.982213 starting no_suppress... ended: 0.010415
Output for 4.3.7
starting suppress... ended: 0.019516 starting no_suppress... ended: 0.010802
Output for 4.3.6
starting suppress... ended: 0.010731 starting no_suppress... ended: 0.005807
Output for 4.3.5
starting suppress... ended: 0.012826 starting no_suppress... ended: 0.006218
Output for 4.3.4
starting suppress... ended: 0.015324 starting no_suppress... ended: 0.0085700000000001
Output for 4.3.3
starting suppress... ended: 0.013107 starting no_suppress... ended: 0.00612
Output for 4.3.2
starting suppress... ended: 0.009872 starting no_suppress... ended: 0.005632
Output for 4.3.1
starting suppress... ended: 0.010112 starting no_suppress... ended: -0.994046
Output for 4.3.0
starting suppress... ended: 0.02094 starting no_suppress... ended: 0.010907