3v4l.org

run code in 500+ PHP versions simultaneously
<?php $beatstr = '1001110110010011'; preg_match_all('/10*|0/', $beatstr, $m); print_r($m); $beatstr = '00110110'; preg_match_all('/10*|0/', $beatstr, $m); print_r($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E9WvQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $beatstr, !1 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '1001110110010011'
    4     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F10%2A%7C0%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    5     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
    6     9        ASSIGN                                                       !0, '00110110'
    7    10        INIT_FCALL                                                   'preg_match_all'
         11        SEND_VAL                                                     '%2F10%2A%7C0%2F'
         12        SEND_VAR                                                     !0
         13        SEND_REF                                                     !1
         14        DO_ICALL                                                     
    8    15        INIT_FCALL                                                   'print_r'
         16        SEND_VAR                                                     !1
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.63 ms | 2189 KiB | 15 Q