3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pop($f) { echo $f; } function hop(Callable $on = NULL) { if (!is_string($on)) { echo "no pat no, don't sit on that"; } } hop('pop'); hop(NULL);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L5qPA
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'hop'
          1        SEND_VAL                                                 'pop'
          2        DO_FCALL                                      0          
   12     3        INIT_FCALL                                               'hop'
          4        SEND_VAL                                                 null
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

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

End of function pop

Function hop:
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
filename:       /in/L5qPA
function name:  hop
number of ops:  6
compiled vars:  !0 = $on
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
    6     1        TYPE_CHECK                                   64  ~1      !0
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->5
    7     4    >   ECHO                                                     'no+pat+no%2C+don%27t+sit+on+that'
    9     5    > > RETURN                                                   null

End of function hop

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.1 ms | 1398 KiB | 15 Q