3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { /** rofl */ function bar() {} } $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); for($i=0; $i<$rounds; $i++) { (new ReflectionMethod('Foo::bar'))->getDocComment(); } echo (microtime(true) - $start);

Abusive script

This script was stopped while abusing our resources

Output for 7.0.8
0.049133062362671 0.28121781349182 0.35011696815491
Output for 7.0.7
0.049462080001831 0.30000996589661 0.37433981895447
Output for 7.0.6
0.052428960800171 0.28537702560425 0.34849786758423
Output for 7.0.5
0.043797969818115 0.27402400970459 0.35342121124268
Output for 7.0.4
0.05168890953064 0.2719030380249 0.34675812721252
Output for 7.0.3
0.037637948989868 0.27243781089783 0.32754898071289
Output for 7.0.2
0.062572002410889 0.28208899497986 0.34418511390686
Output for 7.0.1
0.058357000350952 0.27982211112976 0.34705591201782
Output for 7.0.0
0.050155162811279 0.27886700630188 0.35372400283813
Output for hhvm-3.12.0
0.071552991867065 0.61633610725403
Process exited with code 137.
Output for hhvm-3.10.0
0.10557699203491 0.87195110321045
Process exited with code 137.
Output for 5.6.23
0.12693500518799 0.46844005584717 0.46176290512085
Output for 5.6.22
0.096989870071411 0.45236992835999 0.46792387962341
Output for 5.6.21
0.10228204727173 0.48068284988403 0.46512508392334
Output for 5.6.20
0.1358470916748 0.47347283363342 0.4673969745636
Output for 5.6.19
0.11550498008728 0.54435014724731 0.49825811386108
Output for 5.6.18
0.10747504234314 0.55392718315125 0.50479102134705
Output for 5.6.17
0.093619823455811 0.44952583312988 0.46497201919556
Output for 5.6.16
0.10293102264404 0.54583311080933 0.48746085166931
Output for 5.6.15
0.13374996185303 0.55232286453247 0.52528715133667
Output for 5.6.14
0.14199113845825 0.61950588226318 0.5513379573822
Output for 5.6.13
0.11183714866638 0.5495970249176 0.489825963974
Output for 5.6.12
0.12531113624573 0.55308413505554 0.50731110572815
Output for 5.6.11
0.12882804870605 0.61834001541138 0.49292993545532
Output for 5.6.10
0.13032197952271 0.55120396614075 0.51249289512634
Output for 5.6.9
0.11708402633667 0.45828199386597 0.46978807449341
Output for 5.6.8
0.13395309448242 0.54468297958374 0.51728415489197
Output for 5.6.7
0.080248832702637 0.44531917572021 0.4550449848175
Output for 5.6.6
0.10293292999268 0.47989988327026 0.48752617835999
Output for 5.6.5
0.10668587684631 0.56679487228394 0.48424506187439
Output for 5.6.4
0.084794998168945 0.48589110374451 0.49016904830933
Output for 5.6.3
0.087671995162964 0.47826910018921 0.49144601821899
Output for 5.6.2
0.134840965271 0.54939603805542 0.53326106071472
Output for 5.6.1
0.11417508125305 0.54517793655396 0.49448013305664
Output for 5.6.0
0.08353590965271 0.45471620559692 0.45751190185547
Output for 5.5.37
0.10122799873352 0.48551201820374 0.47177386283875
Output for 5.5.36
0.13947200775146 0.56314992904663 0.53700399398804
Output for 5.5.35
0.090574979782104 0.46675300598145 0.47530293464661
Output for 5.5.34
0.13670587539673 0.56439304351807 0.52278900146484
Output for 5.5.33
0.12510991096497 0.60708093643188 0.50541210174561
Output for 5.5.32
0.12638592720032 0.57087087631226 0.50124502182007
Output for 5.5.31
0.10279583930969 0.47163105010986 0.4736499786377
Output for 5.5.30
0.13448095321655 0.56291007995605 0.52690601348877
Output for 5.5.29
0.147381067276 0.59129786491394 0.51313900947571
Output for 5.5.28
0.11508512496948 0.58147501945496 0.50064182281494
Output for 5.5.27
0.10017490386963 0.45705103874207 0.47121000289917
Output for 5.5.26
0.0870521068573 0.47383689880371 0.4760799407959
Output for 5.5.25
0.11788296699524 0.55753803253174 0.51290583610535
Output for 5.5.24
0.10801291465759 0.55560612678528 0.47599005699158
Output for 5.5.23
0.086742877960205 0.45864701271057 0.46315693855286
Output for 5.5.22
0.12768983840942 0.55492115020752 0.5249080657959
Output for 5.5.21
0.1278350353241 0.57003712654114 0.49774312973022
Output for 5.5.20
0.10012483596802 0.50275301933289 0.50956797599792
Output for 5.5.19
0.1082661151886 0.56458878517151 0.50289487838745
Output for 5.5.18
0.12143611907959 0.47550296783447 0.47553086280823
Output for 5.5.16
0.12850785255432 0.55679488182068 0.5211009979248
Output for 5.5.15
0.11654496192932 0.5578498840332 0.49783802032471
Output for 5.5.14
0.10925889015198 0.54712200164795 0.49098896980286
Output for 5.5.13
0.08375096321106 0.45967078208923 0.46744799613953
Output for 5.5.12
0.12020802497864 0.59957885742188 0.51742887496948
Output for 5.5.11
0.12218403816223 0.57241702079773 0.49859499931335
Output for 5.5.10
0.13741421699524 0.56276607513428 0.52696585655212
Output for 5.5.9
0.093703985214233 0.45645189285278 0.48969888687134
Output for 5.5.8
0.12634992599487 0.5639591217041 0.51826500892639
Output for 5.5.7
0.14151692390442 0.56619095802307 0.53254699707031
Output for 5.5.6
0.11556196212769 0.56242704391479 0.50624895095825
Output for 5.5.5
0.14151406288147 0.56908297538757 0.53399801254272
Output for 5.5.4
0.11883091926575 0.56460213661194 0.50514101982117
Output for 5.5.3
0.11074304580688 0.58790016174316 0.4865779876709
Output for 5.5.2
0.10785317420959 0.57633399963379 0.4728147983551
Output for 5.5.1
0.13101506233215 0.60658979415894 0.53570485115051
Output for 5.5.0
0.12934303283691 0.55445694923401 0.50781106948853
Output for 5.4.45
0.13389205932617 0.54243516921997 0.53143000602722
Output for 5.4.44
0.13210010528564 0.54737997055054 0.53434896469116
Output for 5.4.43
0.12877082824707 0.55091786384583 0.54359602928162
Output for 5.4.42
0.092195987701416 0.46034598350525 0.48086285591125
Output for 5.4.41
0.13536787033081 0.55054187774658 0.53416299819946
Output for 5.4.40
0.11561417579651 0.48049807548523 0.47184681892395
Output for 5.4.39
0.11631011962891 0.54684686660767 0.49542593955994
Output for 5.4.38
0.1326060295105 0.46564388275146 0.46711397171021
Output for 5.4.37
0.11498999595642 0.58915615081787 0.51703596115112
Output for 5.4.36
0.099780797958374 0.45760989189148 0.47417187690735
Output for 5.4.35
0.098902940750122 0.52532005310059 0.4698920249939
Output for 5.4.34
0.11944389343262 0.54390501976013 0.51013708114624
Output for 5.4.32
0.11061000823975 0.5381019115448 0.50417804718018
Output for 5.4.31
0.10866379737854 0.5416259765625 0.4761209487915
Output for 5.4.30
0.12960004806519 0.53964495658875 0.51834201812744
Output for 5.4.29
0.14106488227844 0.5512580871582 0.52302098274231
Output for 5.4.28
0.12754011154175 0.53980112075806 0.51638293266296
Output for 5.4.27
0.12642216682434 0.54261708259583 0.51189398765564
Output for 5.4.26
0.10199189186096 0.53996706008911 0.47706890106201
Output for 5.4.25
0.10423517227173 0.5483570098877 0.47919607162476
Output for 5.4.24
0.10524392127991 0.45306396484375 0.46631503105164
Output for 5.4.23
0.096660137176514 0.51450896263123 0.47319388389587
Output for 5.4.22
0.10882210731506 0.44988012313843 0.46406698226929
Output for 5.4.21
0.10811114311218 0.46026396751404 0.46863317489624
Output for 5.4.20
0.096391916275024 0.45873188972473 0.47338891029358
Output for 5.4.19
0.1189489364624 0.54242396354675 0.50947499275208
Output for 5.4.18
0.096616983413696 0.44981694221497 0.46367812156677
Output for 5.4.17
0.11612296104431 0.55169701576233 0.55296993255615
Output for 5.4.16
0.10051298141479 0.51011109352112 0.46949791908264
Output for 5.4.15
0.10889482498169 0.447016954422 0.48107194900513
Output for 5.4.14
0.10772705078125 0.54107189178467 0.48354196548462
Output for 5.4.13
0.090333938598633 0.50783896446228 0.51250100135803
Output for 5.4.12
0.096267938613892 0.46437788009644 0.47043895721436
Output for 5.4.11
0.099294185638428 0.45940113067627 0.47073698043823
Output for 5.4.10
0.082168102264404 0.45879101753235 0.47414493560791
Output for 5.4.9
0.0974440574646 0.466796875 0.47378492355347
Output for 5.4.8
0.082520008087158 0.45177006721497 0.46315407752991
Output for 5.4.7
0.12771892547607 0.54777002334595 0.49661803245544
Output for 5.4.6
0.1264009475708 0.54150295257568 0.51255106925964
Output for 5.4.5
0.0799880027771 0.44620299339294 0.46997904777527
Output for 5.4.4
0.12321805953979 0.54578709602356 0.51093482971191
Output for 5.4.3
0.13268899917603 0.4539999961853 0.46707487106323
Output for 5.4.2
0.1082239151001 0.55351591110229 0.49388289451599
Output for 5.4.1
0.12961220741272 0.54035592079163 0.52397799491882
Output for 5.4.0
0.11742091178894 0.54743790626526 0.5086669921875
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/45j2j on line 22
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/45j2j on line 22
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/45j2j on line 22
Process exited with code 255.