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);
Output for 7.1.0
0.063060998916626 0.23339796066284
Output for 7.0.14
0.072321891784668 0.07115912437439
Output for 7.0.11
0.040575981140137 0.21745896339417
Output for 7.0.10
0.052560091018677 0.23426795005798
Output for 7.0.9
0.05869197845459 0.28551888465881
Output for 7.0.8
0.055120229721069 0.23213791847229
Output for 7.0.7
0.039695978164673 0.21740889549255
Output for 7.0.6
0.049828052520752 0.2457160949707
Output for 7.0.5
0.051466941833496 0.22151303291321
Output for 7.0.4
0.05432915687561 0.22350382804871
Output for 7.0.3
0.050642013549805 0.26924800872803
Output for 7.0.2
0.049363851547241 0.21799612045288
Output for 7.0.1
0.055577039718628 0.225909948349
Output for 7.0.0
0.038250923156738 0.21889615058899
Output for hhvm-3.13.2
Notice: File could not be loaded: /in/2IaA8
Process exited with code 255.
Output for hhvm-3.12.0
0.11392283439636 1.1088910102844
Output for hhvm-3.10.0
0.14355301856995 1.4799890518188
Output for 5.6.28
-0.052679061889648 -0.42990803718567
Output for 5.6.26
0.13513493537903 0.44427514076233
Output for 5.6.25
0.10017395019531 0.43592810630798
Output for 5.6.24
0.1112220287323 0.44349908828735
Output for 5.6.23
0.10961484909058 0.43925094604492
Output for 5.6.22
0.10589909553528 0.47027087211609
Output for 5.6.21
0.11696100234985 0.44239115715027
Output for 5.6.20
0.10845708847046 0.44298386573792
Output for 5.6.19
0.13638615608215 0.44220900535583
Output for 5.6.18
0.12239718437195 0.44384002685547
Output for 5.6.17
0.11687803268433 0.43998098373413
Output for 5.6.16
0.11252880096436 0.44356799125671
Output for 5.6.15
0.13324308395386 0.4424409866333
Output for 5.6.14
0.10947489738464 0.44602012634277
Output for 5.6.13
0.10767102241516 0.44532799720764
Output for 5.6.12
0.13065314292908 0.44689297676086
Output for 5.6.11
0.10881090164185 0.44148278236389
Output for 5.6.10
0.11100292205811 0.43740606307983
Output for 5.6.9
0.11267781257629 0.4431369304657
Output for 5.6.8
0.12050199508667 0.43754601478577
Output for 5.6.7
0.11524677276611 0.43588399887085
Output for 5.6.6
0.12633991241455 0.43878483772278
Output for 5.6.5
0.13035488128662 0.59120297431946
Output for 5.6.4
0.10483193397522 0.46658706665039
Output for 5.6.3
0.10396599769592 0.44839000701904
Output for 5.6.2
0.10576987266541 0.44168615341187
Output for 5.6.1
0.13215899467468 0.44446802139282
Output for 5.6.0
0.10108518600464 0.44440317153931
Output for 5.5.38
0.1008927822113 0.44168996810913
Output for 5.5.37
0.11361813545227 0.46239590644836
Output for 5.5.36
0.11362409591675 0.47199296951294
Output for 5.5.35
0.13659286499023 0.45793080329895
Output for 5.5.34
0.12172985076904 0.45139694213867
Output for 5.5.33
0.12240290641785 0.45219707489014
Output for 5.5.32
0.13605904579163 0.45319390296936
Output for 5.5.31
0.13741397857666 0.45487689971924
Output for 5.5.30
0.13722991943359 0.45590400695801
Output for 5.5.29
0.12379598617554 0.45402097702026
Output for 5.5.28
0.11090207099915 0.45320701599121
Output for 5.5.27
0.1128261089325 0.45630598068237
Output for 5.5.26
0.11889505386353 0.46001291275024
Output for 5.5.25
0.11674284934998 0.46078395843506
Output for 5.5.24
0.11711597442627 0.44397592544556
Output for 5.5.23
0.11279201507568 0.44759082794189
Output for 5.5.22
0.12708592414856 0.44613885879517
Output for 5.5.21
0.11028790473938 0.45805096626282
Output for 5.5.20
0.10702395439148 0.45202612876892
Output for 5.5.19
0.12209701538086 0.45268797874451
Output for 5.5.18
0.10634589195251 0.45567011833191
Output for 5.5.16
0.11566615104675 0.44683909416199
Output for 5.5.15
0.1115140914917 0.46741104125977
Output for 5.5.14
0.12966012954712 0.44958996772766
Output for 5.5.13
0.11862897872925 0.45352697372437
Output for 5.5.12
0.1177990436554 0.45362210273743
Output for 5.5.11
0.12088489532471 0.45384311676025
Output for 5.5.10
0.13792896270752 0.44803094863892
Output for 5.5.9
0.13546776771545 0.45576000213623
Output for 5.5.8
0.11040997505188 0.45664405822754
Output for 5.5.7
0.12009286880493 0.45132684707642
Output for 5.5.6
0.12012314796448 0.45878601074219
Output for 5.5.5
0.11805105209351 0.45155906677246
Output for 5.5.4
0.11566686630249 0.45056796073914
Output for 5.5.3
0.12019610404968 0.45411682128906
Output for 5.5.2
0.11559391021729 0.45501112937927
Output for 5.5.1
0.11939096450806 0.51921010017395
Output for 5.5.0
0.1293318271637 0.44820404052734
Output for 5.4.45
0.12591814994812 0.44419813156128
Output for 5.4.44
0.11732006072998 0.44036912918091
Output for 5.4.43
0.11435484886169 0.44613003730774
Output for 5.4.42
0.13048601150513 0.43905997276306
Output for 5.4.41
0.1285560131073 0.44951987266541
Output for 5.4.40
0.12573409080505 0.4384138584137
Output for 5.4.39
0.12124490737915 0.44271683692932
Output for 5.4.38
0.13388299942017 0.44161796569824
Output for 5.4.37
0.10392999649048 0.44095015525818
Output for 5.4.36
0.13107299804688 0.43958592414856
Output for 5.4.35
0.098554134368896 0.43245100975037
Output for 5.4.34
0.10193514823914 0.43935012817383
Output for 5.4.32
0.10652494430542 0.46737098693848
Output for 5.4.31
0.11189889907837 0.43402409553528
Output for 5.4.30
0.10450100898743 0.43869185447693
Output for 5.4.29
0.10662794113159 0.44811987876892
Output for 5.4.28
0.12271499633789 0.43766188621521
Output for 5.4.27
0.11457490921021 0.43685913085938
Output for 5.4.26
0.11138606071472 0.46181321144104
Output for 5.4.25
0.10519504547119 0.45255994796753
Output for 5.4.24
0.11074495315552 0.44583988189697
Output for 5.4.23
0.10587000846863 0.44206094741821
Output for 5.4.22
0.11649703979492 0.44674587249756
Output for 5.4.21
0.10837912559509 0.44987010955811
Output for 5.4.20
0.10899996757507 0.44743394851685
Output for 5.4.19
0.1287829875946 0.44309091567993
Output for 5.4.18
0.12024283409119 0.46648216247559
Output for 5.4.17
0.13499999046326 0.44470596313477
Output for 5.4.16
0.10726404190063 0.43995404243469
Output for 5.4.15
0.13069081306458 0.4347231388092
Output for 5.4.14
0.10509014129639 0.43871593475342
Output for 5.4.13
0.13893485069275 0.47715210914612
Output for 5.4.12
0.11592507362366 0.44661712646484
Output for 5.4.11
0.11074209213257 0.44918298721313
Output for 5.4.10
0.12380909919739 0.4391450881958
Output for 5.4.9
0.13528299331665 0.44558000564575
Output for 5.4.8
0.1143798828125 0.448401927948
Output for 5.4.7
0.11192202568054 0.44179606437683
Output for 5.4.6
0.1291561126709 0.44199800491333
Output for 5.4.5
0.12814807891846 0.44111895561218
Output for 5.4.4
0.12001013755798 0.44176506996155
Output for 5.4.3
0.11113810539246 0.44220614433289
Output for 5.4.2
0.1050169467926 0.44615578651428
Output for 5.4.1
0.10637807846069 0.44302296638489
Output for 5.4.0
0.12726020812988 0.44171905517578
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/2IaA8 on line 19
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/2IaA8 on line 19
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/2IaA8 on line 19
Process exited with code 255.