3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inc($matches) { return ++$matches[1]; } $input = preg_replace_callback( "|(\d+)|", "inc", '3يانات الفريق المشارك 2'); echo $input;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J2383
function name:  (null)
number of ops:  8
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'preg_replace_callback'
          1        SEND_VAL                                                 '%7C%28%5Cd%2B%29%7C'
          2        SEND_VAL                                                 'inc'
          3        SEND_VAL                                                 '3%D9%8A%D8%A7%D9%86%D8%A7%D8%AA+%D8%A7%D9%84%D9%81%D8%B1%D9%8A%D9%82+%D8%A7%D9%84%D9%85%D8%B4%D8%A7%D8%B1%D9%83+2'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    8     6        ECHO                                                     !0
          7      > RETURN                                                   1

Function inc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J2383
function name:  inc
number of ops:  5
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FETCH_DIM_RW                                     $1      !0, 1
          2        PRE_INC                                          ~2      $1
          3      > RETURN                                                   ~2
    4     4*     > RETURN                                                   null

End of function inc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.32 ms | 1398 KiB | 15 Q