3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { protected $dir; public function __construct() { $this->dir = __DIR__; } function aaa() { $t = microtime(true); for ($i = 0; $i < 10000; $i++) { $this->dir; } echo microtime(true) - $t; } } $a = new A(); $a->aaa();
Output for 7.0.1, 7.1.0
0.00018405914306641
Output for 7.0.14
0.00021600723266602
Output for 7.0.10
0.00019192695617676
Output for 7.0.9
0.00017690658569336
Output for 7.0.8
0.00016307830810547
Output for 7.0.7
0.00019598007202148
Output for 7.0.6
0.00021910667419434
Output for 7.0.5
0.00019288063049316
Output for 7.0.4
0.00014901161193848
Output for 7.0.3
0.0001678466796875
Output for 7.0.2
0.00014686584472656
Output for 7.0.0
0.00017714500427246
Output for hhvm-3.12.0
0.00090193748474121
Output for hhvm-3.10.0
0.0011100769042969
Output for 5.6.28
0.0007779598236084
Output for 5.6.25
0.0004889965057373
Output for 5.6.24
0.00049209594726562
Output for 5.6.23
0.00052499771118164
Output for 5.6.22
0.00051283836364746
Output for 5.6.21
0.00039315223693848
Output for 5.6.20
0.0005180835723877
Output for 5.6.6, 5.6.9, 5.6.16, 5.6.19
0.00054502487182617
Output for 5.6.18
0.00055980682373047
Output for 5.4.27, 5.4.35, 5.6.17
0.00055813789367676
Output for 5.6.15
0.00054812431335449
Output for 5.6.14
0.00051307678222656
Output for 5.5.38, 5.6.13
0.0004730224609375
Output for 5.6.12
0.00035619735717773
Output for 5.6.11
0.00045490264892578
Output for 5.4.39, 5.6.10
0.00058388710021973
Output for 5.6.8
0.0003659725189209
Output for 5.6.7
0.00052690505981445
Output for 5.5.9, 5.6.5
0.00045299530029297
Output for 5.6.4
0.00045394897460938
Output for 5.6.3
0.00056600570678711
Output for 5.6.2
0.00052118301391602
Output for 5.6.1
0.00049901008605957
Output for 5.6.0
0.00045204162597656
Output for 5.4.31, 5.5.37
0.00046491622924805
Output for 5.5.36
0.00050902366638184
Output for 5.5.35
0.00051593780517578
Output for 5.5.34
0.00052905082702637
Output for 5.5.33
0.00047492980957031
Output for 5.5.2, 5.5.25, 5.5.32
0.00055503845214844
Output for 5.5.27, 5.5.31
0.00055599212646484
Output for 5.5.7, 5.5.29 - 5.5.30
0.00048208236694336
Output for 5.5.28
0.00052809715270996
Output for 5.5.26
0.0005040168762207
Output for 5.5.24
0.00036287307739258
Output for 5.5.23
0.00045895576477051
Output for 5.5.22
0.00066709518432617
Output for 5.4.23, 5.5.21
0.00056099891662598
Output for 5.5.20
0.00058484077453613
Output for 5.5.19
0.0004270076751709
Output for 5.5.18
0.00048303604125977
Output for 5.5.16
0.00046110153198242
Output for 5.5.15
0.00055384635925293
Output for 5.5.14
0.00046801567077637
Output for 5.5.13
0.00054693222045898
Output for 5.5.12
0.00049304962158203
Output for 5.4.19, 5.5.11
0.00056982040405273
Output for 5.5.10
0.0004417896270752
Output for 5.5.8
0.00027704238891602
Output for 5.5.6
0.00064206123352051
Output for 5.5.5
0.0005958080291748
Output for 5.5.4
0.00057411193847656
Output for 5.4.17, 5.5.3
0.00053000450134277
Output for 5.5.1
0.00047993659973145
Output for 5.5.0
0.00046300888061523
Output for 5.4.45
0.00046586990356445
Output for 5.4.44
0.00055694580078125
Output for 5.4.43
0.00055885314941406
Output for 5.4.42
0.00055909156799316
Output for 5.4.41
0.00041103363037109
Output for 5.4.40
0.00053501129150391
Output for 5.4.38
0.00037503242492676
Output for 5.4.18, 5.4.37
0.00054192543029785
Output for 5.4.36
0.00042986869812012
Output for 5.4.34
0.00046896934509277
Output for 5.4.32
0.00042819976806641
Output for 5.4.30
0.00057005882263184
Output for 5.4.7, 5.4.29
0.00061202049255371
Output for 5.4.28
0.00034999847412109
Output for 5.4.26
0.00053095817565918
Output for 5.4.25
0.00054597854614258
Output for 5.4.24
0.00046396255493164
Output for 5.4.22
0.00058317184448242
Output for 5.4.21
0.00053596496582031
Output for 5.4.20
0.0010230541229248
Output for 5.4.16
0.00043582916259766
Output for 5.4.15
0.00050592422485352
Output for 5.4.14
0.00060701370239258
Output for 5.4.13
0.00063490867614746
Output for 5.4.12
0.00058817863464355
Output for 5.4.11
0.00034713745117188
Output for 5.4.10
0.0005340576171875
Output for 5.4.9
0.00045990943908691
Output for 5.4.8
0.00059103965759277
Output for 5.4.6
0.00050091743469238
Output for 5.4.5
0.00048518180847168
Output for 5.4.4
0.0005650520324707
Output for 5.4.3
0.00058197975158691
Output for 5.4.2
0.00048494338989258
Output for 5.4.1
0.00053286552429199
Output for 5.4.0
0.0005648136138916
Output for 5.3.29
0.00090408325195312
Output for 5.3.28
0.00075197219848633
Output for 5.3.27
0.0008080005645752
Output for 5.3.26
0.00069499015808105
Output for 5.3.25
0.00080990791320801
Output for 5.3.24
0.00087499618530273
Output for 5.3.23
0.00084209442138672
Output for 5.3.22
0.00089597702026367
Output for 5.3.21
0.00089883804321289
Output for 5.3.20
0.00098896026611328
Output for 5.3.19
0.00093293190002441
Output for 5.3.18
0.00080299377441406
Output for 5.3.17
0.00080180168151855
Output for 5.3.16
0.00089097023010254
Output for 5.3.15
0.00093483924865723
Output for 5.3.14
0.00094890594482422
Output for 5.3.13
0.0009009838104248
Output for 5.3.12
0.0009620189666748
Output for 5.3.11
0.00091719627380371
Output for 5.3.10
0.00071096420288086
Output for 5.3.9
0.0009610652923584
Output for 5.3.8
0.00084900856018066
Output for 5.3.7
0.00081992149353027
Output for 5.3.6
0.00098514556884766
Output for 5.3.5
0.00076413154602051
Output for 5.3.4
0.0009150505065918
Output for 5.3.3
0.00081110000610352
Output for 5.3.2
0.00096392631530762
Output for 5.3.1
0.00061488151550293
Output for 5.3.0
0.00077676773071289
Output for 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0012600421905518
Output for 5.2.16
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0012030601501465
Output for 5.2.15
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0010011196136475
Output for 5.2.14
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.001039981842041
Output for 5.2.13
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0012249946594238
Output for 5.2.12
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00097799301147461
Output for 5.2.11
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0010578632354736
Output for 5.2.10
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.000946044921875
Output for 5.2.9
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00077295303344727
Output for 5.2.8
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0007021427154541
Output for 5.2.7
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00076103210449219
Output for 5.2.6
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0010480880737305
Output for 5.2.5
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00088810920715332
Output for 5.2.4
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00070405006408691
Output for 5.2.3
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00095796585083008
Output for 5.2.2
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00092697143554688
Output for 5.2.1
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00064897537231445
Output for 5.2.0
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00066399574279785
Output for 5.1.6
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0011148452758789
Output for 5.1.5
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00080585479736328
Output for 5.1.4
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00069117546081543
Output for 5.1.3
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00069594383239746
Output for 5.1.2
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00080204010009766
Output for 5.1.1
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0010159015655518
Output for 5.1.0
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0012369155883789
Output for 5.0.5
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0017600059509277
Output for 5.0.4
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.00124192237854
Output for 5.0.3
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0018060207366943
Output for 5.0.2
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0015878677368164
Output for 5.0.1
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0019650459289551
Output for 5.0.0
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/qcPLl on line 7 0.0011789798736572
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/qcPLl on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/qcPLl on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/qcPLl on line 4
Process exited with code 255.