3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_link($a) { return "change"; } function run($str) { $eval_links = '$link = clean_link("$0")'; return preg_replace('{test}ei',"$eval_links",$str); } echo run('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqdPZ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'run'
          1        SEND_VAL                                                 'test'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function clean_link:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqdPZ
function name:  clean_link
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   'change'
    6     2*     > RETURN                                                   null

End of function clean_link

Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fqdPZ
function name:  run
number of ops:  10
compiled vars:  !0 = $str, !1 = $eval_links
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        ASSIGN                                                   !1, '%24link+%3D+clean_link%28%22%240%22%29'
   12     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%7Btest%7Dei'
          4        CAST                                          6  ~3      !1
          5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8      > RETURN                                                   $4
   13     9*     > RETURN                                                   null

End of function run

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.97 ms | 1090 KiB | 15 Q