3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input =- 'test <span>1234</span><span>12345</span>test<span>5678</span><span>12345</span>test'; preg_match_all("(<span>\d{4}<\/span>)", $input, $output); print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/86viS
function name:  (null)
number of ops:  11
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   MUL                                              ~2      'test+%3Cspan%3E1234%3C%2Fspan%3E%3Cspan%3E12345%3C%2Fspan%3Etest%3Cspan%3E5678%3C%2Fspan%3E%3Cspan%3E12345%3C%2Fspan%3Etest', -1
          1        ASSIGN                                                   !0, ~2
    7     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%28%3Cspan%3E%5Cd%7B4%7D%3C%5C%2Fspan%3E%29'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.45 ms | 1394 KiB | 17 Q