3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mapCallback($f,$a){ $o=[];$c=function($v)use(&$o){$o[]=$v;};foreach($a as$k=>$v)$f($v,$c);return$o; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QgVZl
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   1

Function mapcallback:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/QgVZl
function name:  mapCallback
number of ops:  17
compiled vars:  !0 = $f, !1 = $a, !2 = $o, !3 = $c, !4 = $v, !5 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ASSIGN                                                   !2, <array>
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FQgVZl%3A3%240'
          4        BIND_LEXICAL                                             ~7, !2
          5        ASSIGN                                                   !3, ~7
          6      > FE_RESET_R                                       $9      !1, ->14
          7    > > FE_FETCH_R                                       ~10     $9, !4, ->14
          8    >   ASSIGN                                                   !5, ~10
          9        INIT_DYNAMIC_CALL                                        !0
         10        SEND_VAR_EX                                              !4
         11        SEND_VAR_EX                                              !3
         12        DO_FCALL                                      0          
         13      > JMP                                                      ->7
         14    >   FE_FREE                                                  $9
         15      > RETURN                                                   !2
    4    16*     > RETURN                                                   null

End of function mapcallback

Function %00%7Bclosure%7D%2Fin%2FQgVZl%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QgVZl
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        ASSIGN_DIM                                               !1
          3        OP_DATA                                                  !0
          4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FQgVZl%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.39 ms | 1395 KiB | 13 Q