3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = '10001212121212121500'; # you've to make it string then if (preg_match('/1000(.*?)1500/', $number, $match) == 1) { echo $match[1]; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/pebul
function name:  (null)
number of ops:  11
compiled vars:  !0 = $number, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '10001212121212121500'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F1000%28.%2A%3F%291500%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6        IS_EQUAL                                                 $3, 1
          7      > JMPZ                                                     ~4, ->10
    4     8    >   FETCH_DIM_R                                      ~5      !1, 1
          9        ECHO                                                     ~5
    6    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.46 ms | 996 KiB | 14 Q