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("/(<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/omvM5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'test+%3Cspan%3E1234%3C%2Fspan%3E%3Cspan%3E12345%3C%2Fspan%3Etest%3Cspan%3E5678%3C%2Fspan%3E%3Cspan%3E12345%3C%2Fspan%3Etest'
    7     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%3Cspan%3E%5Cd%7B4%7D%3C%5C%2Fspan%3E%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.04 ms | 1394 KiB | 17 Q