3v4l.org

run code in 500+ PHP versions simultaneously
<?php $haystack = "ACAAGACACATGCCACATTGTCC"; $needle = "ACA"; echo preg_match_all("/(?=$needle)/", $haystack, $matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TXnCF
function name:  (null)
number of ops:  12
compiled vars:  !0 = $haystack, !1 = $needle, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'ACAAGACACATGCCACATTGTCC'
    4     1        ASSIGN                                                       !1, 'ACA'
    5     2        INIT_FCALL                                                   'preg_match_all'
          3        ROPE_INIT                                         3  ~6      '%2F%28%3F%3D'
          4        ROPE_ADD                                          1  ~6      ~6, !1
          5        ROPE_END                                          2  ~5      ~6, '%29%2F'
          6        SEND_VAL                                                     ~5
          7        SEND_VAR                                                     !0
          8        SEND_REF                                                     !2
          9        DO_ICALL                                             $8      
         10        ECHO                                                         $8
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.16 ms | 2040 KiB | 14 Q