3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[Salut] [toi][,] [ça] [va] [?]'; preg_match('/\[.*\]/', $string, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/chfZW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5BSalut%5D+%5Btoi%5D%5B%2C%5D+%5B%C3%A7a%5D+%5Bva%5D+%5B%3F%5D'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5C%5B.%2A%5C%5D%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.68 ms | 1394 KiB | 17 Q