3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'test asdbtestkuiasd TEST asdbctest'; $pattern = '/(test)/i'; $count = preg_match_all($pattern, $string, $matches); echo $count; echo($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQZH7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $pattern, !2 = $count, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test+asdbtestkuiasd+TEST+asdbctest'
    4     1        ASSIGN                                                   !1, '%2F%28test%29%2Fi'
    5     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !3
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    6     8        ECHO                                                     !2
    7     9        ECHO                                                     !3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.32 ms | 1394 KiB | 15 Q