3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function first(string $str): string { function nested() { } return $str; } public function second(int $i): int { return $i; } } $t = new Test; echo $t->first(42); echo $t->second(42);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUssF
function name:  (null)
number of ops:  12
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   20     3        INIT_METHOD_CALL                                         !0, 'first'
          4        SEND_VAL_EX                                              42
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
   21     7        INIT_METHOD_CALL                                         !0, 'second'
          8        SEND_VAL_EX                                              42
          9        DO_FCALL                                      0  $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Function %00nested%2Fin%2FkUssF%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUssF
function name:  nested
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   null

End of function %00nested%2Fin%2FkUssF%3A7%240

Class Test:
Function first:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUssF
function name:  first
number of ops:  6
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        DECLARE_FUNCTION                                         'nested'
   10     2        VERIFY_RETURN_TYPE                                       !0
          3      > RETURN                                                   !0
   11     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function first

Function second:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUssF
function name:  second
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   15     1        VERIFY_RETURN_TYPE                                       !0
          2      > RETURN                                                   !0
   16     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function second

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.68 ms | 1395 KiB | 13 Q