3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo; $rounds = 1000000; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { (new ReflectionClass($foo))->getName(); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); $refl = new ReflectionClass($foo); for($i=0; $i<$rounds; $i++) { $refl->getName(); } echo (microtime(true) - $start);
Output for 7.1.0
0.10137701034546 0.35810708999634 0.052517890930176
Output for 7.0.14
0.073092937469482 0.21951794624329 0.045271873474121
Output for 7.0.13
0.00016617774963379 -0.35963296890259 -0.064314126968384
Output for 7.0.12
0.035034894943237 -0.1872980594635 -0.033607959747314
Output for 7.0.11
0.077319145202637 0.34795308113098 0.056807041168213
Output for 7.0.10
0.049370050430298 0.21758103370667 0.032901048660278
Output for 7.0.9
0.060981035232544 -0.14246106147766 -0.034309864044189
Output for 7.0.8
0.061178922653198 0.22026205062866 0.034076929092407
Output for 7.0.7
0.035301923751831 0.18680000305176 0.033697843551636
Output for 7.0.6
0.062927007675171 0.23178291320801 0.034913063049316
Output for 7.0.5
0.063048124313354 -0.21015310287476 -0.03521990776062
Output for 7.0.4
0.061080932617188 0.21418809890747 0.047753095626831
Output for 7.0.3
0.059406042098999 0.23755598068237 0.033030986785889
Output for 7.0.2
0.057127952575684 -0.2443368434906 -0.05942702293396
Output for 7.0.1
0.0433669090271 0.18565797805786 0.033240079879761
Output for 7.0.0
0.036715030670166 -0.068941831588745 -0.032811164855957
Output for hhvm-3.13.2
0.086951971054077 -0.56060218811035 1.3714089393616
Output for hhvm-3.12.0
-0.074935913085938 -0.66895198822021 -0.10728716850281
Output for hhvm-3.10.0
0.0032608509063721 0.96162509918213 0.039746999740601
Output for 5.6.28
0.15872287750244 0.44161105155945 0.09577202796936
Output for 5.6.27
0.1824791431427 -0.70002794265747 1.5610408782959
Output for 5.6.26
0.11086201667786 -0.15461683273315 -0.095776081085205
Output for 5.6.25
0.19205117225647 -0.21406698226929 1.0959072113037
Output for 5.6.24
0.1427481174469 0.42570900917053 0.011883974075317
Output for 5.6.23
0.14448285102844 -0.097246885299683 -0.11189699172974
Output for 5.6.22
0.092396974563599 0.41591596603394 -0.037133932113647
Output for 5.6.21
0.14718317985535 0.45034003257751 0.095607995986938
Output for 5.6.20
0.092841863632202 0.41644906997681 0.095455884933472
Output for 5.6.19
0.095825910568237 -0.47247099876404 -0.095662117004395
Output for 5.6.18
0.14283585548401 -0.35098910331726 -0.09571385383606
Output for 5.6.17
0.2297089099884 -0.44536185264587 1.3410937786102
Output for 5.6.16
0.094770908355713 0.43118500709534 0.096881866455078
Output for 5.6.15
0.14457178115845 0.43146109580994 0.096110820770264
Output for 5.6.14
0.0038540363311768 -0.73487114906311 1.8037259578705
Output for 5.6.13
0.16168999671936 0.57389807701111 0.18598794937134
Output for 5.6.12
-0.14080381393433 -0.42994499206543 -0.095234870910645
Output for 5.6.11
0.1488311290741 -0.29301905632019 1.2140369415283
Output for 5.6.10
0.093314170837402 0.38661623001099 -0.18504595756531
Output for 5.6.9
0.20182585716248 0.67324209213257 0.18616700172424
Output for 5.6.8
0.11108708381653 0.40558886528015 0.093586921691895
Output for 5.6.7
0.14170408248901 -0.064839124679565 -0.093719959259033
Output for 5.6.6
0.11316609382629 0.011167049407959 -0.097838878631592
Output for 5.6.5
0.17530202865601 -0.39783096313477 -0.13520407676697
Output for 5.6.4
0.090938091278076 0.41486191749573 -0.094137907028198
Output for 5.6.3
0.01192307472229 -0.43957805633545 -0.11290192604065
Output for 5.6.2
-0.11033892631531 -0.57964086532593 -0.096258163452148
Output for 5.6.1
-0.011764049530029 -0.65475797653198 -0.096431970596313
Output for 5.6.0
0.156662940979 0.48787307739258 0.095358848571777
Output for 5.5.38
0.1849000453949 0.376953125 0.5086350440979
Output for 5.5.37
0.12516784667969 0.29734301567078 -0.092655181884766
Output for 5.5.36
0.14343190193176 0.41043186187744 0.086328029632568
Output for 5.5.35
0.23642587661743 -0.49665307998657 1.4153518676758
Output for 5.5.34
0.12185192108154 0.40005612373352 -0.051704883575439
Output for 5.5.33
0.14110684394836 -0.19441699981689 -0.093764066696167
Output for 5.5.32
0.22710704803467 -0.20480394363403 1.1374878883362
Output for 5.5.31
0.18387579917908 -0.15688514709473 -0.14022588729858
Output for 5.5.30
0.092968940734863 0.41348314285278 0.093010902404785
Output for 5.5.29
0.20649600028992 0.59807586669922 0.33534812927246
Output for 5.5.28
0.14322209358215 0.44066977500916 0.092898845672607
Output for 5.5.27
0.16052389144897 -0.37336993217468 -0.093176126480103
Output for 5.5.26
0.091955184936523 0.41399693489075 0.091710090637207
Output for 5.5.25
0.12969708442688 0.19767999649048 -0.10363912582397
Output for 5.5.24
0.092455863952637 0.40139317512512 0.091476917266846
Output for 5.5.23
0.092909812927246 0.41805982589722 0.092709064483643
Output for 5.5.22
0.12636399269104 0.43650102615356 -0.067401170730591
Output for 5.5.21
0.094480037689209 0.42170596122742 0.092479944229126
Output for 5.5.20
0.090871810913086 -0.18537378311157 -0.09174919128418
Output for 5.5.19
0.10840201377869 -0.063198804855347 -0.091856002807617
Output for 5.5.18
0.092759132385254 0.42449879646301 0.097960948944092
Output for 5.5.16
0.051630973815918 -0.48464918136597 -0.092319965362549
Output for 5.5.15
0.14887714385986 0.44000506401062 -0.06428599357605
Output for 5.5.14
0.18306994438171 0.4282398223877 0.092288017272949
Output for 5.5.13
0.0093300342559814 -0.55155611038208 -0.092544794082642
Output for 5.5.12
0.14395189285278 -0.37428617477417 -0.093144178390503
Output for 5.5.11
0.093186140060425 0.38408994674683 -0.092089891433716
Output for 5.5.10
0.17465090751648 0.17123579978943 -0.10669612884521
Output for 5.5.9
0.14720702171326 0.42738509178162 -0.035703182220459
Output for 5.5.8
0.18189716339111 -0.4139838218689 -0.12379503250122
Output for 5.5.7
0.14206218719482 -0.31937289237976 -0.1288731098175
Output for 5.5.6
0.18597507476807 -0.016051054000854 0.96227502822876
Output for 5.5.5
0.14474606513977 0.4927670955658 -0.042299032211304
Output for 5.5.4
0.14278817176819 0.42209792137146 0.091442108154297
Output for 5.5.3
0.1416380405426 0.48527097702026 0.092120885848999
Output for 5.5.2
0.13410401344299 -0.072527170181274 -0.098419904708862
Output for 5.5.1
0.1034951210022 -0.12515711784363 -0.093244791030884
Output for 5.5.0
0.20445513725281 0.13843703269958 0.75044393539429
Output for 5.4.45
0.1410129070282 0.40982103347778 0.10949802398682
Output for 5.4.44
0.11184191703796 0.41957688331604 0.057301998138428
Output for 5.4.43
0.14150500297546 -0.40706014633179 -0.094522953033447
Output for 5.4.42
0.14443683624268 -0.12677717208862 -0.093180894851685
Output for 5.4.41
0.20268106460571 0.21295285224915 0.67408108711243
Output for 5.4.40
0.14229583740234 -0.41369485855103 -0.093569993972778
Output for 5.4.39
0.16378593444824 0.29570889472961 -0.10942006111145
Output for 5.4.38
-0.027585029602051 -0.39831185340881 -0.095921993255615
Output for 5.4.37
-0.010579824447632 -0.43457698822021 -0.10974907875061
Output for 5.4.36
0.14442205429077 -0.45335006713867 -0.12599110603333
Output for 5.4.35
0.091414928436279 0.40657806396484 0.10906910896301
Output for 5.4.34
0.14186596870422 0.35541915893555 -0.093369960784912
Output for 5.4.32
0.14092779159546 -0.25008702278137 -0.1063060760498
Output for 5.4.31
0.1047739982605 0.12865090370178 -0.10434484481812
Output for 5.4.30
0.14457893371582 0.45990514755249 0.10755085945129
Output for 5.4.29
0.12961506843567 -0.61333584785461 -0.096781015396118
Output for 5.4.28
0.11980319023132 -0.51909899711609 -0.14411878585815
Output for 5.4.27
0.16452813148499 -0.17002987861633 -0.092421054840088
Output for 5.4.26
0.19866895675659 0.34173583984375 0.54702806472778
Output for 5.4.25
0.14439916610718 0.42779493331909 0.094303846359253
Output for 5.4.24
0.14089703559875 0.41174697875977 0.09382700920105
Output for 5.4.23
0.14421105384827 -0.036306858062744 -0.09321117401123
Output for 5.4.22
0.095351934432983 0.04768180847168 -0.097134828567505
Output for 5.4.21
0.15594100952148 0.3220419883728 -0.097750902175903
Output for 5.4.20
0.15618205070496 0.62440204620361 -0.11025094985962
Output for 5.4.19
0.046814918518066 -0.40740895271301 -0.094590902328491
Output for 5.4.18
0.21654391288757 -0.15561509132385 1.0920269489288
Output for 5.4.17
0.12073111534119 0.13882112503052 -0.094532012939453
Output for 5.4.16
0.10354804992676 -0.19400215148926 -0.093485116958618
Output for 5.4.15
0.10321593284607 0.025711059570312 -0.094873905181885
Output for 5.4.14
0.18501281738281 0.29525589942932 -0.10740804672241
Output for 5.4.13
0.14612007141113 0.30559396743774 -0.1088879108429
Output for 5.4.12
0.14123487472534 0.28055214881897 -0.1386661529541
Output for 5.4.11
0.16000294685364 0.21510887145996 -0.096161127090454
Output for 5.4.10
0.091116905212402 0.39549398422241 0.094144821166992
Output for 5.4.9
0.23694896697998 0.61497211456299 0.25792694091797
Output for 5.4.8
0.23751378059387 -0.37263488769531 1.2599959373474
Output for 5.4.7
-0.069617033004761 -0.63906693458557 -0.10195803642273
Output for 5.4.6
-0.22872400283813 -0.71487188339233 1.8204779624939
Output for 5.4.5
0.14792799949646 0.1177191734314 -0.09681510925293
Output for 5.4.4
0.15487408638 0.08052396774292 -0.09913182258606
Output for 5.4.3
0.14873886108398 0.41019988059998 -0.036872863769531
Output for 5.4.2
0.23351812362671 -0.096714973449707 1.0245909690857
Output for 5.4.1
0.12747502326965 -0.41883087158203 -0.094721078872681
Output for 5.4.0
0.14705014228821 -0.028687953948975 -0.096236944198608
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/mjMol on line 19
Process exited with code 255.