3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '"3"sca"""co"1"str"0"ctor""r"3"t"0"r"1""locat"5"o"133""0"27""754a49b393c2a0"33"b97"332"cb7"3"c3c07"2""co"1"str"0"ct"233223322"or""r"3"t"0"'; echo preg_replace_callback('/"([23]{1,7})"/', function ($m) { return str_replace(['2', '3'], ['d', 'e'], $m[1]); }, $text );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ag2HZ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%223%22sca%22%22%22co%221%22str%220%22ctor%22%22r%223%22t%220%22r%221%22%22locat%225%22o%22133%22%220%2227%22%22754a49b393c2a0%2233%22b97%22332%22cb7%223%22c3c07%222%22%22co%221%22str%220%22ct%22233223322%22or%22%22r%223%22t%220%22'
    4     1        INIT_FCALL                                               'preg_replace_callback'
          2        SEND_VAL                                                 '%2F%22%28%5B23%5D%7B1%2C7%7D%29%22%2F'
    5     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
    7     4        SEND_VAL                                                 ~2
    8     5        SEND_VAR                                                 !0
    4     6        DO_ICALL                                         $3      
    8     7        ECHO                                                     $3
    9     8      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ag2HZ
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        FETCH_DIM_R                                      ~1      !0, 1
          5        SEND_VAL                                                 ~1
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
    7     8*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.61 ms | 1011 KiB | 15 Q