3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(preg_match('/.*(\d+).*/','lol rofl',$matches) && count($matches) > 1) { echo 'yay'; } if (count($foo)) { echo "foo\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 11
Branch analysis from position: 9
filename:       /in/v3LDZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $matches, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F.%2A%28%5Cd%2B%29.%2A%2F'
          2        SEND_VAL                                                 'lol+rofl'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ_EX                                          ~3      $2, ->9
          6    >   COUNT                                            ~4      !0
          7        IS_SMALLER                                       ~5      1, ~4
          8        BOOL                                             ~3      ~5
          9    > > JMPZ                                                     ~3, ->11
         10    >   ECHO                                                     'yay'
    5    11    >   COUNT                                            ~6      !1
         12      > JMPZ                                                     ~6, ->14
    6    13    >   ECHO                                                     'foo%0A'
    7    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.19 ms | 1386 KiB | 15 Q