3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dummy { function __construct($input = array(1,2,3)) { $this->input = $input; } function run() { $input->each(function($i, $elem) { }); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q2SsF
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fq2SsF%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q2SsF
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $i, !1 = $elem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fq2SsF%3A10%240

Class Dummy:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q2SsF
function name:  __construct
number of ops:  4
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      <array>
    5     1        ASSIGN_OBJ                                               'input'
          2        OP_DATA                                                  !0
    6     3      > RETURN                                                   null

End of function __construct

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q2SsF
function name:  run
number of ops:  5
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_METHOD_CALL                                         !0, 'each'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fq2SsF%3A10%240'
   12     2        SEND_VAL_EX                                              ~1
          3        DO_FCALL                                      0          
   13     4      > RETURN                                                   null

End of function run

End of class Dummy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.82 ms | 1394 KiB | 13 Q