3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = preg_match('|^\w+-(\w+)-\w*-\w+$|', '1234-123--132', $m); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEb9Y
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%7C%5E%5Cw%2B-%28%5Cw%2B%29-%5Cw%2A-%5Cw%2B%24%7C'
          2        SEND_VAL                                                 '1234-123--132'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    3     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.68 ms | 1385 KiB | 17 Q