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 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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 ] } } }
Output for 8.0.0 - 8.0.30
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 ] } } Method [ <internal:SPL, inherits SplHeap> public method extract ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> mixed $value ] } } Method [ <internal:SPL, inherits SplHeap> public method top ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isCorrupted ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method __debugInfo ] { - Parameters [0] { } } } }
Output for 7.4.6 - 7.4.33
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> $value1 ] Parameter #1 [ <required> $value2 ] } } Method [ <internal:SPL, inherits SplHeap> public method extract ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> $value ] } } Method [ <internal:SPL, inherits SplHeap> public method top ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isCorrupted ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method __debugInfo ] { - Parameters [0] { } } } }
Output for 7.4.0 - 7.4.5
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 [13] { Method [ <internal:SPL, overwrites SplHeap, prototype SplHeap> protected method compare ] { - Parameters [2] { Parameter #0 [ <required> $value1 ] Parameter #1 [ <required> $value2 ] } } Method [ <internal:SPL, inherits SplHeap> public method extract ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> $value ] } } Method [ <internal:SPL, inherits SplHeap> public method top ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isCorrupted ] { - Parameters [0] { } } } }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
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 [13] { Method [ <internal:SPL, overwrites SplHeap, prototype SplHeap> protected method compare ] { - Parameters [2] { Parameter #0 [ <required> $a ] Parameter #1 [ <required> $b ] } } Method [ <internal:SPL, inherits SplHeap> public method extract ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> $value ] } } Method [ <internal:SPL, inherits SplHeap> public method top ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isCorrupted ] { - Parameters [0] { } } } }
Output for 5.3.1 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
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 [12] { Method [ <internal:SPL, overwrites SplHeap, prototype SplHeap> protected method compare ] { - Parameters [2] { Parameter #0 [ <required> $a ] Parameter #1 [ <required> $b ] } } Method [ <internal:SPL, inherits SplHeap> public method extract ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> $value ] } } Method [ <internal:SPL, inherits SplHeap> public method top ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { - Parameters [0] { } } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { - Parameters [0] { } } } }
Output for 5.3.0
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 [12] { Method [ <internal:SPL, overwrites SplHeap, prototype SplHeap> protected method compare ] { - Parameters [2] { Parameter #0 [ <required> $a ] Parameter #1 [ <required> $b ] } } Method [ <internal:SPL, inherits SplHeap> public method extract ] { } Method [ <internal:SPL, inherits SplHeap> public method insert ] { - Parameters [1] { Parameter #0 [ <required> $value ] } } Method [ <internal:SPL, inherits SplHeap> public method top ] { } Method [ <internal:SPL, inherits SplHeap, prototype Countable> public method count ] { } Method [ <internal:SPL, inherits SplHeap> public method isEmpty ] { } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method rewind ] { } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method current ] { } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method key ] { } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method next ] { } Method [ <internal:SPL, inherits SplHeap, prototype Iterator> public method valid ] { } Method [ <internal:SPL, inherits SplHeap> public method recoverFromCorruption ] { } } }
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Fatal error: Class 'SplMaxHeap' not found in /in/trceh on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: splmaxheap in /in/trceh on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: splmaxheap in /in/trceh on line 3

preferences:
301.32 ms | 401 KiB | 400 Q