3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = 'test toto 2001'; $t1 = preg_match('/de|à/', $t, $matches, PREG_OFFSET_CAPTURE); echo $t1."\r\n"; print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BIGJi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $t, !1 = $t1, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test+toto+2001'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fde%7C%C3%A0%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        SEND_VAL                                                 256
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        CONCAT                                           ~6      !1, '%0D%0A'
          9        ECHO                                                     ~6
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.06 ms | 1394 KiB | 17 Q