3v4l.org

run code in 500+ PHP versions simultaneously
<?php $haystack = "ACAAGACACATGCCACATTGTCC"; $needle = "ACA"; preg_match_all("/$needle/", $haystack, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6FhTd
function name:  (null)
number of ops:  14
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'
          4        ROPE_ADD                                          1  ~6      ~6, !1
          5        ROPE_END                                          2  ~5      ~6, '%2F'
          6        SEND_VAL                                                     ~5
          7        SEND_VAR                                                     !0
          8        SEND_REF                                                     !2
          9        DO_ICALL                                                     
    6    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.64 ms | 2062 KiB | 15 Q