3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tocheck = 'aba'; $inlong = 'dzamburu n koma baba n dingo'; preg_match("/$tocheck/", $inlong, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1en7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $tocheck, !1 = $inlong, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'aba'
    4     1        ASSIGN                                                   !1, 'dzamburu+n+koma+baba+n+dingo'
    5     2        INIT_FCALL                                               'preg_match'
          3        ROPE_INIT                                     3  ~6      '%2F'
          4        ROPE_ADD                                      1  ~6      ~6, !0
          5        ROPE_END                                      2  ~5      ~6, '%2F'
          6        SEND_VAL                                                 ~5
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
    7    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:
156.09 ms | 1394 KiB | 17 Q