3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a ($p_a) { function b ($p_b) { return "I'm 'b' with parameters a:$p_a and b:$p_b\n"; } return b($p_a); } echo b(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5EUW
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL_BY_NAME                                       'b'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

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

End of function a

Function %00b%2Fin%2FP5EUW%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/P5EUW
function name:  b
number of ops:  8
compiled vars:  !0 = $p_b, !1 = $p_a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     5  ~3      'I%27m+%27b%27+with+parameters+a%3A'
          2        ROPE_ADD                                      1  ~3      ~3, !1
          3        ROPE_ADD                                      2  ~3      ~3, '+and+b%3A'
          4        ROPE_ADD                                      3  ~3      ~3, !0
          5        ROPE_END                                      4  ~2      ~3, '%0A'
          6      > RETURN                                                   ~2
    5     7*     > RETURN                                                   null

End of function %00b%2Fin%2FP5EUW%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.08 ms | 1385 KiB | 13 Q