CINXE.COM
Online PHP editor | output for rqUF2
<!DOCTYPE html><html dir="ltr" lang="en-US"><head><title>Online PHP editor | output for rqUF2</title><base href="https://3v4l.org/"><meta name="keywords" content="php,test,run,execute,online,interactive,shell,console,codepad,fiddle,xdebug,vld,performance"><meta name="description" content="Run your php code online; get statistics, vld output and compare output from all versions."><meta name="author" content="Sjon Hortensius - root@3v4l.org"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="twitter:card" content="summary"><link rel="manifest" href="/manifest"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/s/c.49fa43d0.css"></head><body class="new script output"><header><a href="/"><h1>3v4l.org</h1><span>run code in 300+ PHP versions simultaneously</span></a><nav><ul><li><a href="/sponsor">sponsor</a><li><a href="/bughunt">bughunt</a></li><li><a href="/search">search</a></li><li><a href="/last">recent</a></li><li><a href="/about">about</a></li></ul></nav></header><meta property="og:image" content="https://3v4l.org/s/site_thumb.png"><meta property="og:type" content="article"><meta property="og:url" content="https://3v4l.org/rqUF2"><meta property="og:description" content="View the output of this script on 3v4l.org: the online PHP shell with 250+ PHP versions"><div itemscope itemtype="http://schema.org/Article"><meta property="og:title" content="rqUF2 - created on 3v4l.org"><form method="post" action="/new" id="newForm"><div><input class="valid" type="text" name="title" id="title" maxlength="64" placeholder="Untitled" aria-label="Optional title" pattern="^[\x20-\x7e\x80-\xff]*$" /><time itemprop="datePublished" datetime="2018-12-20T13:22:09Z">@ 2018-12-20T13:22:09Z</time></div><div><textarea name="code" aria-label="code you want to submit"></textarea><code itemprop="articleBody" class="required invalid"><?php class Foo { public $foo; } class Bar extends Foo { public $bar; } $barClassReflection = new ReflectionClass(Bar::class); $properties = $barClassReflection->getProperties(); var_dump($properties); foreach ($properties as $property) { var_dump($property->getName()); var_dump($property->class); var_dump($property->getDeclaringClass()->getName()); var_dump($property->class === $property->getDeclaringClass()->getName()); }</code></div><div><select class="valid" name="version" id="version" data-values='{"8.4.":[1],"8.3.":14,"8.2.":26,"8.1.":31,"8.0.":[30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,3,2,1,0],"7.4.":[33,32,30,29,28,27,26,25,24,23,22,21,20,19,18,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0],"7.3.":33,"7.2.":34,"7.1.":33,"7.0.":33,"5.6.":40,"5.5.":38,"5.4.":45,"5.3.":29,"5.2.":17,"5.1.":6,"5.0.":5,"4.4.":9,"4.3.":11,"git.":["master_jit","master"],"rfc.":["property-hooks"]}'></select></div><input type="submit" value="eval();" title="shortcut: ctrl+enter" /></form><noscript><div class="alert warning"><h2>Enable javascript to submit</h2><p>You have javascript disabled. You will not be able to edit any code.</p></div></noscript><ul id="tabs"><li itemprop="articleSection" class="active"><a href="/rqUF2">Output</a></li><li><a href="/rqUF2/perf">Performance</a></li><li><a href="/rqUF2/vld">VLD</a></li><li><a href="/rqUF2/refs">References</a></li><li><a href="/rqUF2/rfc">Branches</a></li></ul><div id="tab" itemprop="articleBody"><a id="output"></a><dl><dt id="v7.0.33">Output for <span title="released 2018-12-06">7.0.33</span>, <span title="released 2018-12-06">7.1.25</span>, <span title="released 2017-11-30">7.2.0</span> - <span title="released 2020-08-06">7.2.33</span>, <span title="released 2018-12-06">7.3.0</span> - <span title="released 2021-11-18">7.3.33</span>, <span title="released 2019-11-28">7.4.0</span> - <span title="released 2022-11-03">7.4.33</span>, <span title="released 2020-11-26">8.0.0</span> - <span title="released 2023-08-03">8.0.30</span>, <span title="released 2021-11-25">8.1.0</span> - <span title="released 2024-11-21">8.1.31</span>, <span title="released 2022-12-08">8.2.0</span> - <span title="released 2024-11-21">8.2.26</span>, <span title="released 2023-11-23">8.3.0</span> - <span title="released 2024-11-21">8.3.14</span>, <span title="released 2024-11-21">8.4.1</span></dt><dd>array(2) { [0]=> object(ReflectionProperty)#2 (2) { ["name"]=> string(3) "bar" ["class"]=> string(3) "Bar" } [1]=> object(ReflectionProperty)#3 (2) { ["name"]=> string(3) "foo" ["class"]=> string(3) "Foo" } } string(3) "bar" string(3) "Bar" string(3) "Bar" bool(true) string(3) "foo" string(3) "Foo" string(3) "Foo" bool(true) </dd><dt id="v5.6.38">Output for <span title="released 2018-09-13">5.6.38</span></dt><dd>array(2) { [0]=> &object(ReflectionProperty)#2 (2) { ["name"]=> string(3) "bar" ["class"]=> string(3) "Bar" } [1]=> &object(ReflectionProperty)#3 (2) { ["name"]=> string(3) "foo" ["class"]=> string(3) "Foo" } } string(3) "bar" string(3) "Bar" string(3) "Bar" bool(true) string(3) "foo" string(3) "Foo" string(3) "Foo" bool(true) </dd></dl></div></div><hr /><div id="prefs">preferences:<input type="checkbox" id="darkMode" /><label for="darkMode">dark mode</label><input type="checkbox" id="livePreview" /><label for="livePreview">live preview</label></div><b>87.22</b> ms | <b>408</b> KiB | <b>5</b> Q<script src="/s/my.js" async></script><script src="/ext/diff.js" async></script><script src="https://cdn.jsdelivr.net/gh/ajaxorg/ace-builds@1.23.0/src-min-noconflict/ace.js" integrity="sha384-/HiYf7uts/FC/PC50yfG3bXnxyMdlMFQpgaXPNOqiTJkQIbiBeth3J86SYJowDdK" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/gh/ajaxorg/ace-builds@1.23.0/src-min-noconflict/ext-language_tools.js" integrity="sha384-pjdIm81c7GuHpSIwd3CpO3BgZx2B+hNtSvqcFnk7DCwPdEmf0xBCZX5i7jMj/ib6" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/gh/ajaxorg/ace-builds@1.23.0/src-min-noconflict/mode-php.js" integrity="sha384-EO1oIq3Wru7Pa4jrHft9hrjz2SKGcYx1J/BteienRTZbIRvIWRADNyaNMCV4AmNN" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/gh/ajaxorg/ace-builds@1.23.0/src-min-noconflict/theme-chrome.js" integrity="sha384-uOlVPZfQXFZofTCU/B1H8M3c6hww7F3VOufsGRLzlK4l9blvVqfJeONjYJM5+tnb" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/gh/ajaxorg/ace-builds@1.23.0/src-min-noconflict/theme-chaos.js" integrity="sha384-mfoITkRp/u4qWConw/ovtCjvymPkNZiOj9csanbxBv8rdPa/v7wiZdnwF8i+M3UE" crossorigin="anonymous"></script></body></html>