3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match($r = '[foo\\[[\\d\\s]+\\]]', 'lorem foo[42 37 19 ] ipsum', $m), $m); echo "$r\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5StQd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $r, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        ASSIGN                                           ~2      !0, '%5Bfoo%5C%5B%5B%5Cd%5Cs%5D%2B%5C%5D%5D'
          3        SEND_VAL                                                 ~2
          4        SEND_VAL                                                 'lorem+foo%5B42+37+19+%5D+ipsum'
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    3    10        NOP                                                      
         11        FAST_CONCAT                                      ~5      !0, '%0A'
         12        ECHO                                                     ~5
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.44 ms | 1385 KiB | 17 Q