3v4l.org

run code in 300+ PHP versions simultaneously
<?php $konstanty = array( 267, 51, 162, 131, 389, 71, 59, 164, 285, 5, 20, 100, 94, 224, 245, 121, 2, 234, 236, 342, 78, 33, 35, 3, 68, 2 ); $kostanty = array_map(function ($i) {return $i/3421;}, $konstanty); $x = []; foreach ($kostanty as $key => $konstanta) { $x[chr(ord('A')+$key)] = $konstanta; } echo json_encode($x);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/ibIqj
function name:  (null)
number of ops:  24
compiled vars:  !0 = $konstanty, !1 = $kostanty, !2 = $x, !3 = $konstanta, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   32     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FibIqj%3A32%240'
          3        SEND_VAL                                                 ~6
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !1, $7
   34     7        ASSIGN                                                   !2, <array>
   35     8      > FE_RESET_R                                       $10     !1, ->18
          9    > > FE_FETCH_R                                       ~11     $10, !3, ->18
         10    >   ASSIGN                                                   !4, ~11
   36    11        INIT_FCALL                                               'chr'
         12        ADD                                              ~13     65, !4
         13        SEND_VAL                                                 ~13
         14        DO_ICALL                                         $14     
         15        ASSIGN_DIM                                               !2, $14
         16        OP_DATA                                                  !3
   35    17      > JMP                                                      ->9
         18    >   FE_FREE                                                  $10
   39    19        INIT_FCALL                                               'json_encode'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $16     
         22        ECHO                                                     $16
         23      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FibIqj%3A32%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.97 ms | 1396 KiB | 19 Q