3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(preg_match('/.*(\d+).*/','lol rofl',$matches) && count($matches) > 1) { echo 'yay'; }
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 9
filename:       /in/QkcHt
function name:  (null)
number of ops:  12
compiled vars:  !0 = $matches
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                                         $1      
          5      > JMPZ_EX                                          ~2      $1, ->9
          6    >   COUNT                                            ~3      !0
          7        IS_SMALLER                                       ~4      1, ~3
          8        BOOL                                             ~2      ~4
          9    > > JMPZ                                                     ~2, ->11
         10    >   ECHO                                                     'yay'
         11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.87 ms | 1394 KiB | 15 Q