3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'fooAbar'; $valid = (bool) preg_match('#(?:[A-Z].*){2}#', $s); var_dump($valid);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XoQ9N
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $valid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'fooAbar'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%28%3F%3A%5BA-Z%5D.%2A%29%7B2%7D%23'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        BOOL                                             ~4      $3
          6        ASSIGN                                                   !1, ~4
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.5 ms | 1394 KiB | 17 Q