3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1, 10); preg_grep('/asdf/', $array); foreach ($array as $k => $v) { print $k; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/BdpWH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'preg_grep'
          6        SEND_VAL                                                 '%2Fasdf%2F'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    6     9      > FE_RESET_R                                       $6      !0, ->14
         10    > > FE_FETCH_R                                       ~7      $6, !1, ->14
         11    >   ASSIGN                                                   !2, ~7
    7    12        ECHO                                                     !2
    6    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $6
    8    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.1 ms | 1399 KiB | 17 Q