3v4l.org

run code in 300+ PHP versions simultaneously
<?php class strings { function fix_string($a) { echo $a; } function fix_strings($b) { self::fix_striung($b); } } $s = new strings(); $ret = $s->fix_strings('Derick'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9JWJ
function name:  (null)
number of ops:  8
compiled vars:  !0 = $s, !1 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $2      'strings'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   17     3        INIT_METHOD_CALL                                         !0, 'fix_strings'
          4        SEND_VAL_EX                                              'Derick'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   18     7      > RETURN                                                   1

Class strings:
Function fix_string:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9JWJ
function name:  fix_string
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   null

End of function fix_string

Function fix_strings:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j9JWJ
function name:  fix_strings
number of ops:  5
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_STATIC_METHOD_CALL                                  'fix_striung'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   12     4      > RETURN                                                   null

End of function fix_strings

End of class strings.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.63 ms | 1394 KiB | 13 Q