3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e = new SplMaxHeap(); die(new ReflectionObject($e)); $e->push(1); foreach ($e as $t) { echo $t.'.'; }
Output for git.master, git.master_jit, rfc.property-hooks
Object of class [ <internal:SPL> <iterateable> class SplMaxHeap extends SplHeap implements Countable, Traversable, Iterator ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Dynamic properties [0] { } - Methods [14] { Method [ <internal:SPL, overwrites SplHeap, prototype SplHeap> protected method compare ] { - Parameters [2] { Parameter #0 [ <required> mixed $value1 ] Parameter #1 [ <required> mixed $value2 ] } - Tentative return [ int ] } Method [ <internal:SPL, inherits SplHeap> public method extract ] { - Parameters [0] { } - Tentative return [ mixed ] } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> mixed $value ] } - Tentative return [ bool ] } Method [ <internal:SPL, inherits SplHeap> public method top ] { - Parameters [0] { } - Tentative return [ mixed ] } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { - Parameters [0] { } - Tentative return [ int ] } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { - Parameters [0] { } - Tentative return [ bool ] } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { - Parameters [0] { } - Tentative return [ void ] } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { - Parameters [0] { } - Tentative return [ mixed ] } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { - Parameters [0] { } - Tentative return [ int ] } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { - Parameters [0] { } - Tentative return [ void ] } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { - Parameters [0] { } - Tentative return [ bool ] } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { - Parameters [0] { } - Tentative return [ bool ] } Method [ <internal:SPL, inherits SplHeap> public method isCorrupted ] { - Parameters [0] { } - Tentative return [ bool ] } Method [ <internal:SPL, inherits SplHeap> public method __debugInfo ] { - Parameters [0] { } - Tentative return [ array ] } } }

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:
65.04 ms | 409 KiB | 8 Q