3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = new ReflectionClass("SplPriorityQueue"); var_dump($class->getMethods());
Output for git.master, git.master_jit, rfc.property-hooks
array(16) { [0]=> object(ReflectionMethod)#2 (2) { ["name"]=> string(7) "compare" ["class"]=> string(16) "SplPriorityQueue" } [1]=> object(ReflectionMethod)#3 (2) { ["name"]=> string(6) "insert" ["class"]=> string(16) "SplPriorityQueue" } [2]=> object(ReflectionMethod)#4 (2) { ["name"]=> string(15) "setExtractFlags" ["class"]=> string(16) "SplPriorityQueue" } [3]=> object(ReflectionMethod)#5 (2) { ["name"]=> string(3) "top" ["class"]=> string(16) "SplPriorityQueue" } [4]=> object(ReflectionMethod)#6 (2) { ["name"]=> string(7) "extract" ["class"]=> string(16) "SplPriorityQueue" } [5]=> object(ReflectionMethod)#7 (2) { ["name"]=> string(5) "count" ["class"]=> string(16) "SplPriorityQueue" } [6]=> object(ReflectionMethod)#8 (2) { ["name"]=> string(7) "isEmpty" ["class"]=> string(16) "SplPriorityQueue" } [7]=> object(ReflectionMethod)#9 (2) { ["name"]=> string(6) "rewind" ["class"]=> string(16) "SplPriorityQueue" } [8]=> object(ReflectionMethod)#10 (2) { ["name"]=> string(7) "current" ["class"]=> string(16) "SplPriorityQueue" } [9]=> object(ReflectionMethod)#11 (2) { ["name"]=> string(3) "key" ["class"]=> string(16) "SplPriorityQueue" } [10]=> object(ReflectionMethod)#12 (2) { ["name"]=> string(4) "next" ["class"]=> string(16) "SplPriorityQueue" } [11]=> object(ReflectionMethod)#13 (2) { ["name"]=> string(5) "valid" ["class"]=> string(16) "SplPriorityQueue" } [12]=> object(ReflectionMethod)#14 (2) { ["name"]=> string(21) "recoverFromCorruption" ["class"]=> string(16) "SplPriorityQueue" } [13]=> object(ReflectionMethod)#15 (2) { ["name"]=> string(11) "isCorrupted" ["class"]=> string(16) "SplPriorityQueue" } [14]=> object(ReflectionMethod)#16 (2) { ["name"]=> string(15) "getExtractFlags" ["class"]=> string(16) "SplPriorityQueue" } [15]=> object(ReflectionMethod)#17 (2) { ["name"]=> string(11) "__debugInfo" ["class"]=> string(16) "SplPriorityQueue" } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.87 ms | 409 KiB | 8 Q