3v4l.org

run code in 300+ PHP versions simultaneously
<?php function s(){echo "s";} function _call($name,$arg){ if($name == 's'){ return 'this is'.'$arg'; } } echo s();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Y6A1
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               's'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function s

Function _call:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Y6A1
function name:  _call
number of ops:  6
compiled vars:  !0 = $name, !1 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        IS_EQUAL                                                 !0, 's'
          3      > JMPZ                                                     ~2, ->5
    5     4    > > RETURN                                                   'this+is%24arg'
    7     5    > > RETURN                                                   null

End of function _call

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156 ms | 1397 KiB | 14 Q