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 "\n"; $start = microtime(true); for($i=0; $i<1000000; $i++) { (new ReflectionClass($foo))->getName(); } echo (microtime(true) - $start);
Output for 7.1.0
0.062808036804199 0.25133085250854
Output for 7.0.14
0.05522608757019 0.21629500389099
Output for 7.0.7
0.05707311630249 0.28965401649475
Output for 7.0.6
0.057319164276123 0.28986787796021
Output for 7.0.5
0.048793077468872 0.27632403373718
Output for 7.0.4
0.057622194290161 0.30457186698914
Output for 7.0.3
0.044523000717163 0.27840399742126
Output for 7.0.2
0.057204961776733 0.28912687301636
Output for 7.0.1
0.050487995147705 0.28531408309937
Output for 7.0.0
0.049308061599731 0.25329399108887
Output for hhvm-3.12.0
0.081325054168701 0.65810418128967
Output for hhvm-3.10.0
0.087400197982788 0.71766996383667
Output for 5.6.28
0.1814501285553 0.42360401153564
Output for 5.6.22
0.12996792793274 0.57343006134033
Output for 5.6.21
0.12848114967346 0.57508611679077
Output for 5.6.20
0.12445878982544 0.57753801345825
Output for 5.6.19
0.13339185714722 0.54657816886902
Output for 5.6.18
0.13935208320618 0.54852485656738
Output for 5.6.17
0.11083889007568 0.54635405540466
Output for 5.6.16
0.10257601737976 0.55245995521545
Output for 5.6.15
0.13710689544678 0.54971289634705
Output for 5.6.14
0.13426685333252 0.54688096046448
Output for 5.6.13
0.11919713020325 0.55009698867798
Output for 5.6.12
0.092658996582031 0.45312809944153
Output for 5.6.11
0.12456822395325 0.5563530921936
Output for 5.6.10
0.099477052688599 0.52939987182617
Output for 5.6.9
0.1306529045105 0.54766798019409
Output for 5.6.8
0.11313199996948 0.54109191894531
Output for 5.6.7
0.13016700744629 0.5545060634613
Output for 5.6.6
0.12293601036072 0.552738904953
Output for 5.6.5
0.10193610191345 0.55229377746582
Output for 5.6.4
0.11796402931213 0.54962611198425
Output for 5.6.3
0.13995599746704 0.56580305099487
Output for 5.6.2
0.11036896705627 0.54360103607178
Output for 5.6.1
0.11942982673645 0.54757690429688
Output for 5.6.0
0.12134289741516 0.54530000686646
Output for 5.5.36
0.11054301261902 0.56454205513
Output for 5.5.35
0.12292718887329 0.56489181518555
Output for 5.5.34
0.11377286911011 0.55567502975464
Output for 5.5.33
0.13346695899963 0.56221199035645
Output for 5.5.32
0.13451409339905 0.55635786056519
Output for 5.5.31
0.13061189651489 0.56214594841003
Output for 5.5.30
0.084017992019653 0.46168780326843
Output for 5.5.29
0.12320303916931 0.55999898910522
Output for 5.5.28
0.09070897102356 0.47422885894775
Output for 5.5.27
0.10822987556458 0.55093312263489
Output for 5.5.26
0.13833594322205 0.55673384666443
Output for 5.5.25
0.13616704940796 0.55462193489075
Output for 5.5.24
0.10745000839233 0.55493116378784
Output for 5.5.23
0.129390001297 0.55279421806335
Output for 5.5.22
0.13023781776428 0.55758881568909
Output for 5.5.21
0.13682317733765 0.56408309936523
Output for 5.5.20
0.135990858078 0.55190205574036
Output for 5.5.19
0.13707494735718 0.56436800956726
Output for 5.5.18
0.10172009468079 0.52865695953369
Output for 5.5.16
0.13528895378113 0.55942010879517
Output for 5.5.15
0.13261413574219 0.56096315383911
Output for 5.5.14
0.1259880065918 0.61421012878418
Output for 5.5.13
0.14078116416931 0.56032204627991
Output for 5.5.12
0.12232112884521 0.55333614349365
Output for 5.5.11
0.13095593452454 0.55915713310242
Output for 5.5.10
0.13587284088135 0.55735397338867
Output for 5.5.9
0.12738299369812 0.57365798950195
Output for 5.5.8
0.1337947845459 0.56363391876221
Output for 5.5.7
0.11768579483032 0.56926608085632
Output for 5.5.6
0.10315608978271 0.51919412612915
Output for 5.5.5
0.13196587562561 0.48876905441284
Output for 5.5.4
0.1150209903717 0.55709791183472
Output for 5.5.3
0.13691020011902 0.55656409263611
Output for 5.5.2
0.14093208312988 0.56429886817932
Output for 5.5.1
0.1140570640564 0.55337905883789
Output for 5.5.0
0.11569690704346 0.55333995819092
Output for 5.4.45
0.14423584938049 0.54832887649536
Output for 5.4.44
0.13029098510742 0.54505920410156
Output for 5.4.43
0.099456071853638 0.54126214981079
Output for 5.4.42
0.13403606414795 0.54244494438171
Output for 5.4.41
0.12113404273987 0.54720211029053
Output for 5.4.40
0.13413095474243 0.5440149307251
Output for 5.4.39
0.12943387031555 0.5428409576416
Output for 5.4.38
0.13443899154663 0.54355907440186
Output for 5.4.37
0.10618996620178 0.54321813583374
Output for 5.4.36
0.10691404342651 0.53978490829468
Output for 5.4.35
0.095178842544556 0.45153880119324
Output for 5.4.34
0.12698292732239 0.54020214080811
Output for 5.4.32
0.12524795532227 0.53857803344727
Output for 5.4.31
0.10480499267578 0.54204177856445
Output for 5.4.30
0.11567306518555 0.55676603317261
Output for 5.4.29
0.13092398643494 0.55567002296448
Output for 5.4.28
0.12345314025879 0.53802609443665
Output for 5.4.27
0.13390707969666 0.53836512565613
Output for 5.4.26
0.13737201690674 0.54281520843506
Output for 5.4.25
0.13944387435913 0.5848228931427
Output for 5.4.24
0.13755917549133 0.57677602767944
Output for 5.4.23
0.12984013557434 0.54939913749695
Output for 5.4.22
0.13554811477661 0.56691288948059
Output for 5.4.21
0.10467290878296 0.51104116439819
Output for 5.4.20
0.13141703605652 0.55057096481323
Output for 5.4.19
0.12064790725708 0.54155087471008
Output for 5.4.18
0.12136888504028 0.54319477081299
Output for 5.4.17
0.10110402107239 0.54556393623352
Output for 5.4.16
0.13205409049988 0.54254698753357
Output for 5.4.15
0.10943412780762 0.5396032333374
Output for 5.4.14
0.11080694198608 0.5684859752655
Output for 5.4.13
0.10185503959656 0.51367497444153
Output for 5.4.12
0.097455978393555 0.51948595046997
Output for 5.4.11
0.10452485084534 0.5356981754303
Output for 5.4.10
0.10854387283325 0.54151487350464
Output for 5.4.9
0.080109119415283 0.44964599609375
Output for 5.4.8
0.097397089004517 0.48930311203003
Output for 5.4.7
0.095140933990479 0.44776892662048
Output for 5.4.6
0.1110668182373 0.54476404190063
Output for 5.4.5
0.097462177276611 0.47861886024475
Output for 5.4.4
0.099426984786987 0.48722386360168
Output for 5.4.3
0.13070201873779 0.5640971660614
Output for 5.4.2
0.10071921348572 0.54684090614319
Output for 5.4.1
0.11318206787109 0.5385308265686
Output for 5.4.0
0.14035606384277 0.57924294471741
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/YePXG 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/YePXG on line 17
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/YePXG on line 17
Process exited with code 255.