3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nb = 100; $data = range(1, 1000); $callback = function ($value, $key) { return [$key => $value]; }; for ($ii = $nb; $ii--; ) { $values = array_map($callback, $data, array_keys($data)); $result = array_replace(...$values); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
Branch analysis from position: 10
filename:       /in/kone1
function name:  (null)
number of ops:  27
compiled vars:  !0 = $nb, !1 = $data, !2 = $callback, !3 = $ii, !4 = $values, !5 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100
    5     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 1000
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    7     6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fkone1%3A7%240'
          7        ASSIGN                                                   !2, ~9
   11     8        ASSIGN                                                   !3, !0
          9      > JMP                                                      ->24
   13    10    >   INIT_FCALL                                               'array_map'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !1
         13        INIT_FCALL                                               'array_keys'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $12     
         16        SEND_VAR                                                 $12
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !4, $13
   14    19        INIT_FCALL                                               'array_replace'
         20        SEND_UNPACK                                              !4
         21        CHECK_UNDEF_ARGS                                         
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !5, $15
   11    24    >   POST_DEC                                         ~17     !3
         25      > JMPNZ                                                    ~17, ->10
   16    26    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fkone1%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kone1
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        INIT_ARRAY                                       ~2      !0, !1
          3      > RETURN                                                   ~2
    9     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fkone1%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.97 ms | 1388 KiB | 21 Q