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++) { (new ReflectionClass($foo))->getName(); } echo (microtime(true) - $start); echo "\n"; $start = microtime(true); for($i=0; $i<$rounds; $i++) { get_class($foo); } echo (microtime(true) - $start);
Output for 7.1.0
0.25823497772217 0.036109924316406
Output for 7.0.14
-0.20104289054871 -0.058835029602051
Output for 7.0.6
0.21833610534668 0.038358926773071
Output for 7.0.5
0.23771119117737 0.037966966629028
Output for 7.0.4
0.22791218757629 0.038204193115234
Output for 7.0.3
0.234130859375 0.037621021270752
Output for 7.0.2
0.23423385620117 0.040024995803833
Output for 7.0.1
0.24047017097473 0.038609027862549
Output for 7.0.0
0.22360706329346 0.038012981414795
Output for hhvm-3.12.0
0.69345998764038 0.10711193084717
Output for hhvm-3.10.0
0.82854700088501 0.088097095489502
Output for 5.6.28
0.4901340007782 0.10817408561707
Output for 5.6.21
0.49375796318054 0.10876202583313
Output for 5.6.20
0.45867300033569 0.099447011947632
Output for 5.6.19
0.45160698890686 0.10065293312073
Output for 5.6.18
0.44550490379333 0.099348068237305
Output for 5.6.17
0.45011806488037 0.10282206535339
Output for 5.6.16
0.48103785514832 0.10716390609741
Output for 5.6.15
0.43901395797729 0.098430156707764
Output for 5.6.14
0.43227696418762 0.096129894256592
Output for 5.6.13
0.46084499359131 0.09810996055603
Output for 5.6.12
0.46501398086548 0.10231804847717
Output for 5.6.11
0.50102710723877 0.10071086883545
Output for 5.6.10
0.44611597061157 0.09986400604248
Output for 5.6.9
0.46498203277588 0.099561929702759
Output for 5.6.8
0.4586718082428 0.10056495666504
Output for 5.6.7
0.35796904563904 0.080145120620728
Output for 5.5.35
0.47142910957336 0.10158181190491
Output for 5.5.34
0.4751410484314 0.10140800476074
Output for 5.5.33
0.45805811882019 0.09849214553833
Output for 5.5.32
0.45111298561096 0.10152101516724
Output for 5.5.31
0.45943403244019 0.10376191139221
Output for 5.5.30
0.45289897918701 0.10424399375916
Output for 5.5.29
0.47588109970093 0.1025869846344
Output for 5.5.28
0.48108196258545 0.10329294204712
Output for 5.5.27
0.45404601097107 0.10387492179871
Output for 5.5.26
0.45614099502563 0.09998607635498
Output for 5.5.25
0.48122596740723 0.099586963653564
Output for 5.5.24
0.46133899688721 0.098948001861572
Output for 5.4.45
0.44754505157471 0.098350048065186
Output for 5.4.44
0.47115802764893 0.0955810546875
Output for 5.4.43
0.46722197532654 0.097438097000122
Output for 5.4.42
0.44850301742554 0.10058403015137
Output for 5.4.41
0.43839812278748 0.11273694038391
Output for 5.4.40
0.44423699378967 0.098021984100342
Output for 5.4.39
0.46447086334229 0.10030198097229
Output for 5.4.38
0.43933796882629 0.094618082046509
Output for 5.4.37
0.45287394523621 0.097844839096069
Output for 5.4.36
0.44919991493225 0.10028696060181
Output for 5.4.35
0.44083094596863 0.094906091690063
Output for 5.4.34
0.43083596229553 0.0953049659729
Output for 5.4.32
0.43128108978271 0.096787929534912
Output for 5.4.31
0.435711145401 0.1003851890564
Output for 5.4.30
0.4349160194397 0.09471607208252
Output for 5.4.29
0.43881011009216 0.10107612609863
Output for 5.4.28
0.43722891807556 0.097704172134399
Output for 5.4.27
0.68790602684021 0.15634202957153
Output for 5.4.26
0.43716287612915 0.10222697257996
Output for 5.4.25
0.66202116012573 0.14755606651306
Output for 5.4.24
0.46666884422302 0.1212170124054
Output for 5.4.23
0.64135098457336 0.14111089706421
Output for 5.4.22
0.4585440158844 0.10456991195679
Output for 5.4.21
0.44197797775269 0.10064220428467
Output for 5.4.20
0.4401490688324 0.095638036727905
Output for 5.4.19
0.4726619720459 0.09813404083252
Output for 5.4.18
0.44864010810852 0.10306406021118
Output for 5.4.17
0.51658797264099 0.099951028823853
Output for 5.4.16
0.45961284637451 0.10105586051941
Output for 5.4.15
0.4506311416626 0.098885059356689
Output for 5.4.14
0.44989395141602 0.098987102508545
Output for 5.4.13
0.49788904190063 0.10229516029358
Output for 5.4.12
0.44516396522522 0.097890853881836
Output for 5.4.11
0.44761991500854 0.099867820739746
Output for 5.4.10
0.43353700637817 0.093968152999878
Output for 5.4.9
0.53291082382202 0.11527109146118
Output for 5.4.8
0.44893002510071 0.096641778945923
Output for 5.4.7
0.57061004638672 0.12857389450073
Output for 5.4.6
0.46437501907349 0.10159182548523
Output for 5.4.5
0.45304989814758 0.094123840332031
Output for 5.4.4
0.4343090057373 0.093840837478638
Output for 5.4.3
0.42933392524719 0.094817161560059
Output for 5.4.2
0.44869709014893 0.10013008117676
Output for 5.4.1
0.42451810836792 0.094609022140503
Output for 5.4.0
0.4668390750885 0.10154294967651
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/4FeDV on line 11
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/4FeDV on line 11
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/4FeDV on line 11
Process exited with code 255.