3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function run() { // Call each test to fill warnings array foreach(get_class_methods($this) as $method) { if(strpos($method, 'test_') === 0) $this->{$method}(); } } function test_a() { echo 'called'; } } $a = new a(); $a->run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H3kJF
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'run'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class a:
Function run:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/H3kJF
function name:  run
number of ops:  17
compiled vars:  !0 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'get_class_methods'
          1        FETCH_THIS                                       ~1      
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                         $2      
          4      > FE_RESET_R                                       $3      $2, ->15
          5    > > FE_FETCH_R                                               $3, !0, ->15
   10     6    >   INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'test_'
          9        DO_ICALL                                         $4      
         10        IS_IDENTICAL                                             $4, 0
         11      > JMPZ                                                     ~5, ->14
   11    12    >   INIT_METHOD_CALL                                         !0
         13        DO_FCALL                                      0          
    8    14    > > JMP                                                      ->5
         15    >   FE_FREE                                                  $3
   13    16      > RETURN                                                   null

End of function run

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

End of function test_a

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.3 ms | 1388 KiB | 17 Q