3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"1":[1,"7"],"2":[2,"10"],"3":[3,"17"],"4":[4,"8"],"5":[5,"10"],"6":[6,"11"],"7":[7,"13"],"8":[8,"9"],"9":[9,"13"],"10":[10,"15"],"11":[11,"14"],"12":[12,"16"],"13":[13,"16"],"14":[14,"18"],"15":[15,"10"],"16":[16,"54"],"17":[17,"76"],"18":[18,"57"],"19":[19,"73"],"20":[20,"61"],"21":[21,"45"],"22":[22,"56"],"23":[23,"72"],"24":[24,"44"],"25":[25,"2"],"26":[26,"29"],"27":[27,"3"],"28":[28,"1"],"29":[29,"5"],"30":[30,0]}'; $arr = json_decode($json,true); foreach($arr as $key=>$val) { $val[1] = (int)$val[1]; $arr[$key] = $val; } echo json_encode(array_values($arr));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/pdqfF
function name:  (null)
number of ops:  25
compiled vars:  !0 = $json, !1 = $arr, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%221%22%3A%5B1%2C%227%22%5D%2C%222%22%3A%5B2%2C%2210%22%5D%2C%223%22%3A%5B3%2C%2217%22%5D%2C%224%22%3A%5B4%2C%228%22%5D%2C%225%22%3A%5B5%2C%2210%22%5D%2C%226%22%3A%5B6%2C%2211%22%5D%2C%227%22%3A%5B7%2C%2213%22%5D%2C%228%22%3A%5B8%2C%229%22%5D%2C%229%22%3A%5B9%2C%2213%22%5D%2C%2210%22%3A%5B10%2C%2215%22%5D%2C%2211%22%3A%5B11%2C%2214%22%5D%2C%2212%22%3A%5B12%2C%2216%22%5D%2C%2213%22%3A%5B13%2C%2216%22%5D%2C%2214%22%3A%5B14%2C%2218%22%5D%2C%2215%22%3A%5B15%2C%2210%22%5D%2C%2216%22%3A%5B16%2C%2254%22%5D%2C%2217%22%3A%5B17%2C%2276%22%5D%2C%2218%22%3A%5B18%2C%2257%22%5D%2C%2219%22%3A%5B19%2C%2273%22%5D%2C%2220%22%3A%5B20%2C%2261%22%5D%2C%2221%22%3A%5B21%2C%2245%22%5D%2C%2222%22%3A%5B22%2C%2256%22%5D%2C%2223%22%3A%5B23%2C%2272%22%5D%2C%2224%22%3A%5B24%2C%2244%22%5D%2C%2225%22%3A%5B25%2C%222%22%5D%2C%2226%22%3A%5B26%2C%2229%22%5D%2C%2227%22%3A%5B27%2C%223%22%5D%2C%2228%22%3A%5B28%2C%221%22%5D%2C%2229%22%3A%5B29%2C%225%22%5D%2C%2230%22%3A%5B30%2C0%5D%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6      > FE_RESET_R                                       $7      !1, ->16
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->16
          8    >   ASSIGN                                                   !3, ~8
          9        FETCH_DIM_R                                      ~11     !2, 1
         10        CAST                                          4  ~12     ~11
         11        ASSIGN_DIM                                               !2, 1
         12        OP_DATA                                                  ~12
         13        ASSIGN_DIM                                               !1, !3
         14        OP_DATA                                                  !2
         15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $7
    7    17        INIT_FCALL                                               'json_encode'
         18        INIT_FCALL                                               'array_values'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $14     
         21        SEND_VAR                                                 $14
         22        DO_ICALL                                         $15     
         23        ECHO                                                     $15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.17 ms | 1388 KiB | 19 Q