3v4l.org

run code in 300+ PHP versions simultaneously
<?php class classForTesting { public $testVar; public function classForTesting () { return true; } public function methodTrue () { return true; } public function methodFalse () { return false; } } var_dump(get_class_methods("classForTesting"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fTVcL
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'get_class_methods'
          2        SEND_VAL                                                 'classForTesting'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Class classForTesting:
Function classfortesting:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fTVcL
function name:  classForTesting
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <true>
    8     1*     > RETURN                                                   null

End of function classfortesting

Function methodtrue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fTVcL
function name:  methodTrue
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E > > RETURN                                                   <true>
   12     1*     > RETURN                                                   null

End of function methodtrue

Function methodfalse:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fTVcL
function name:  methodFalse
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   <false>
   16     1*     > RETURN                                                   null

End of function methodfalse

End of class classForTesting.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.47 ms | 1395 KiB | 17 Q