3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rand = range(0, 50); shuffle($rand); $rand2 = range(0, 50); shuffle($rand2); $arr = array_combine($rand, $rand2); foreach(array_filter($arr,function($v,$k){ return $k <= 15 && $k >= 10; },2) as $key => $value) { echo "$key: $value\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 36
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 36
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/39FGo
function name:  (null)
number of ops:  38
compiled vars:  !0 = $rand, !1 = $rand2, !2 = $arr, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 50
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'shuffle'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'range'
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 50
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !1, $8
    7    13        INIT_FCALL                                               'shuffle'
         14        SEND_REF                                                 !1
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'array_combine'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $11     
         20        ASSIGN                                                   !2, $11
   11    21        INIT_FCALL                                               'array_filter'
         22        SEND_VAR                                                 !2
         23        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F39FGo%3A11%240'
         24        SEND_VAL                                                 ~13
         25        SEND_VAL                                                 2
         26        DO_ICALL                                         $14     
         27      > FE_RESET_R                                       $15     $14, ->36
         28    > > FE_FETCH_R                                       ~16     $15, !3, ->36
         29    >   ASSIGN                                                   !4, ~16
   12    30        ROPE_INIT                                     4  ~19     !4
         31        ROPE_ADD                                      1  ~19     ~19, '%3A+'
         32        ROPE_ADD                                      2  ~19     ~19, !3
         33        ROPE_END                                      3  ~18     ~19, '%0A'
         34        ECHO                                                     ~18
   11    35      > JMP                                                      ->28
         36    >   FE_FREE                                                  $15
   13    37      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F39FGo%3A11%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/39FGo
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        IS_SMALLER_OR_EQUAL                              ~2      !1, 15
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   IS_SMALLER_OR_EQUAL                              ~3      10, !1
          5        BOOL                                             ~2      ~3
          6    > > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F39FGo%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.11 ms | 1400 KiB | 21 Q