3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = '0123456|BHKAHHHHkjkjkjkjk|12345678|JuiKKK121255 9100450|HHkk|12348888|JuiKKK10000000021sdadad255'; $searchfor = '12348888'; $regexp = "/^([^|]+)\|([^|]+)\|" . $searchfor . "\|/m"; $result = preg_match_all($regexp, $input, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gYhLW
function name:  (null)
number of ops:  15
compiled vars:  !0 = $input, !1 = $searchfor, !2 = $regexp, !3 = $result, !4 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '0123456%7CBHKAHHHHkjkjkjkjk%7C12345678%7CJuiKKK121255%0A9100450%7CHHkk%7C12348888%7CJuiKKK10000000021sdadad255'
    5     1        ASSIGN                                                       !1, '12348888'
    6     2        CONCAT                                               ~7      '%2F%5E%28%5B%5E%7C%5D%2B%29%5C%7C%28%5B%5E%7C%5D%2B%29%5C%7C', !1
          3        CONCAT                                               ~8      ~7, '%5C%7C%2Fm'
          4        ASSIGN                                                       !2, ~8
    7     5        INIT_FCALL                                                   'preg_match_all'
          6        SEND_VAR                                                     !2
          7        SEND_VAR                                                     !0
          8        SEND_REF                                                     !4
          9        DO_ICALL                                             $10     
         10        ASSIGN                                                       !3, $10
    8    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !4
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.57 ms | 2011 KiB | 15 Q