3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo; $start = microtime(true); for($i=0; $i<1000000; $i++) { get_class($foo); } echo (microtime(true) - $start); echo "<br>\n"; $start = microtime(true); for($i=0; $i<1000000; $i++) { (new ReflectionClass($foo))->getName(); } echo (microtime(true) - $start);
Output for 7.1.0
0.036459922790527<br> 0.21648716926575
Output for 7.0.14
0.057671070098877<br> 0.32681584358215
Output for 7.0.8
0.049194097518921<br> 0.27826714515686
Output for 7.0.7
0.038635969161987<br> 0.27596306800842
Output for 7.0.6
0.053757905960083<br> 0.28816294670105
Output for 7.0.5
0.031463146209717<br> 0.22219204902649
Output for 7.0.4
0.055328845977783<br> 0.27978706359863
Output for 7.0.3
0.048403024673462<br> 0.27692890167236
Output for 7.0.2
0.053900957107544<br> 0.27531099319458
Output for 7.0.1
0.058022022247314<br> 0.28676080703735
Output for 7.0.0
0.051337003707886<br> 0.28108692169189
Output for 5.6.28
-0.10069584846497<br> -0.42067098617554
Output for 5.6.23
0.12973999977112<br> 0.55282211303711
Output for 5.6.22
0.12846612930298<br> 0.54503011703491
Output for 5.6.21
0.10341787338257<br> 0.45609307289124
Output for 5.6.20
0.10502481460571<br> 0.55110597610474
Output for 5.6.19
0.1054060459137<br> 0.49468803405762
Output for 5.6.18
0.10132598876953<br> 0.52046585083008
Output for 5.6.17
0.11647605895996<br> 0.64583110809326
Output for 5.6.16
0.12062501907349<br> 0.55382513999939
Output for 5.6.15
0.12264204025269<br> 0.55171203613281
Output for 5.6.14
0.099644184112549<br> 0.49776005744934
Output for 5.6.13
0.11184906959534<br> 0.58196306228638
Output for 5.6.12
0.11758399009705<br> 0.56744503974915
Output for 5.6.11
0.10240912437439<br> 0.56565594673157
Output for 5.6.10
0.11479115486145<br> 0.5461311340332
Output for 5.6.9
0.13409996032715<br> 0.54854106903076
Output for 5.6.8
0.11377191543579<br> 0.58607292175293
Output for 5.6.7
0.097213983535767<br> 0.48722386360168
Output for 5.6.6
0.10387802124023<br> 0.55222797393799
Output for 5.6.5
0.097491979598999<br> 0.54906511306763
Output for 5.6.4
0.10099601745605<br> 0.5555100440979
Output for 5.6.3
0.13820695877075<br> 0.59540796279907
Output for 5.6.2
0.1110360622406<br> 0.55192494392395
Output for 5.6.1
0.13607001304626<br> 0.55219316482544
Output for 5.6.0
0.099063873291016<br> 0.48768091201782
Output for 5.5.37
0.11108183860779<br> 0.56940913200378
Output for 5.5.36
0.11215591430664<br> 0.56849598884583
Output for 5.5.35
0.10537481307983<br> 0.4844081401825
Output for 5.5.34
0.10953116416931<br> 0.54711198806763
Output for 5.5.33
0.14044594764709<br> 0.61067914962769
Output for 5.5.32
0.1195650100708<br> 0.55789613723755
Output for 5.5.31
0.12328481674194<br> 0.56154298782349
Output for 5.5.30
0.12275910377502<br> 0.56708598136902
Output for 5.5.29
0.13472700119019<br> 0.48324012756348
Output for 5.5.28
0.13121485710144<br> 0.55701303482056
Output for 5.5.27
0.13309502601624<br> 0.59328103065491
Output for 5.5.26
0.13449907302856<br> 0.55946016311646
Output for 5.5.25
0.13770508766174<br> 0.57041597366333
Output for 5.5.24
0.13086318969727<br> 0.55574607849121
Output for 5.5.23
0.099172115325928<br> 0.46009302139282
Output for 5.5.22
0.11136102676392<br> 0.55656003952026
Output for 5.5.21
0.10958409309387<br> 0.56162905693054
Output for 5.5.20
0.11925411224365<br> 0.55022501945496
Output for 5.5.19
0.14072108268738<br> 0.56889986991882
Output for 5.5.18
0.11930990219116<br> 0.57196807861328
Output for 5.5.16
0.082803010940552<br> 0.46200084686279
Output for 5.5.15
0.11599802970886<br> 0.55325698852539
Output for 5.5.14
0.12401080131531<br> 0.56086087226868
Output for 5.5.13
0.091212034225464<br> 0.49377489089966
Output for 5.5.12
0.10049891471863<br> 0.46643495559692
Output for 5.5.11
0.10257196426392<br> 0.56177186965942
Output for 5.5.10
0.11062502861023<br> 0.48397207260132
Output for 5.5.9
0.13613104820251<br> 0.47559404373169
Output for 5.5.8
0.13804292678833<br> 0.56241488456726
Output for 5.5.7
0.10237598419189<br> 0.53585886955261
Output for 5.5.6
0.11304306983948<br> 0.52618312835693
Output for 5.5.5
0.13685297966003<br> 0.50311803817749
Output for 5.5.4
0.12586283683777<br> 0.55638885498047
Output for 5.5.3
0.11960792541504<br> 0.56123089790344
Output for 5.5.2
0.10271811485291<br> 0.50076580047607
Output for 5.5.1
0.10237097740173<br> 0.47536993026733
Output for 5.5.0
0.10848188400269<br> 0.55224800109863
Output for 5.4.45
0.13077306747437<br> 0.62384390830994
Output for 5.4.44
0.12169194221497<br> 0.54061508178711
Output for 5.4.43
0.12761092185974<br> 0.49681210517883
Output for 5.4.42
0.120521068573<br> 0.5455961227417
Output for 5.4.41
0.13395094871521<br> 0.55160188674927
Output for 5.4.40
0.11506390571594<br> 0.54605412483215
Output for 5.4.39
0.12606406211853<br> 0.58479714393616
Output for 5.4.38
0.13405299186707<br> 0.54789900779724
Output for 5.4.37
0.13053607940674<br> 0.46403384208679
Output for 5.4.36
0.13429808616638<br> 0.54439496994019
Output for 5.4.35
0.13438391685486<br> 0.56288504600525
Output for 5.4.34
0.12076091766357<br> 0.53969192504883
Output for 5.4.32
0.13040518760681<br> 0.54444098472595
Output for 5.4.31
0.10687398910522<br> 0.53916811943054
Output for 5.4.30
0.1058521270752<br> 0.54170107841492
Output for 5.4.29
0.090376853942871<br> 0.51600193977356
Output for 5.4.28
0.11159586906433<br> 0.56974792480469
Output for 5.4.27
0.10114884376526<br> 0.5364818572998
Output for 5.4.26
0.081326007843018<br> 0.44578909873962
Output for 5.4.25
0.13138484954834<br> 0.47031402587891
Output for 5.4.24
0.12529706954956<br> 0.545254945755
Output for 5.4.23
0.078581094741821<br> 0.44772791862488
Output for 5.4.22
0.12680792808533<br> 0.54389405250549
Output for 5.4.21
0.13878703117371<br> 0.55019187927246
Output for 5.4.20
0.11109304428101<br> 0.55173802375793
Output for 5.4.19
0.12123584747314<br> 0.54620099067688
Output for 5.4.18
0.12131404876709<br> 0.55036401748657
Output for 5.4.17
0.11539101600647<br> 0.54997301101685
Output for 5.4.16
0.12130403518677<br> 0.54229497909546
Output for 5.4.15
0.1285719871521<br> 0.54574012756348
Output for 5.4.14
0.12991094589233<br> 0.54449796676636
Output for 5.4.13
0.12478399276733<br> 0.57270097732544
Output for 5.4.12
0.12456107139587<br> 0.54685401916504
Output for 5.4.11
0.11675691604614<br> 0.58926391601562
Output for 5.4.10
0.12421703338623<br> 0.60346579551697
Output for 5.4.9
0.13111400604248<br> 0.54794096946716
Output for 5.4.8
0.12524795532227<br> 0.54466199874878
Output for 5.4.7
0.11655688285828<br> 0.54442405700684
Output for 5.4.6
0.11567091941833<br> 0.54966616630554
Output for 5.4.5
0.1341769695282<br> 0.54650402069092
Output for 5.4.4
0.1018168926239<br> 0.54895401000977
Output for 5.4.3
0.098525047302246<br> 0.46636700630188
Output for 5.4.2
0.12729597091675<br> 0.5523099899292
Output for 5.4.1
0.11499500274658<br> 0.54251003265381
Output for 5.4.0
0.12102699279785<br> 0.54653191566467
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/JWjgR on line 17
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/JWjgR on line 17
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/JWjgR on line 17
Process exited with code 255.