3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = array('bla = :bla'); foreach($where as $cond => $term) { if(preg_match('/(:\S+)/', $cond, $matches)) { $expression = $cond; } } echo $expression;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/rVB8F
function name:  (null)
number of ops:  15
compiled vars:  !0 = $where, !1 = $term, !2 = $cond, !3 = $matches, !4 = $expression
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $6      !0, ->12
          2    > > FE_FETCH_R                                       ~7      $6, !1, ->12
          3    >   ASSIGN                                                   !2, ~7
    4     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%28%3A%5CS%2B%29%2F'
          6        SEND_VAR                                                 !2
          7        SEND_REF                                                 !3
          8        DO_ICALL                                         $9      
          9      > JMPZ                                                     $9, ->11
    5    10    >   ASSIGN                                                   !4, !2
    3    11    > > JMP                                                      ->2
         12    >   FE_FREE                                                  $6
    8    13        ECHO                                                     !4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.69 ms | 1395 KiB | 15 Q