3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo 1; } function bar() { echo 2; } preg_replace('/.+/e', 'foo("$0")', '{${bar()}}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2IXER
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F.%2B%2Fe'
          2        SEND_VAL                                                 'foo%28%22%240%22%29'
          3        SEND_VAL                                                 '%7B%24%7Bbar%28%29%7D%7D'
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2IXER
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     1
          1      > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2IXER
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     2
          1      > RETURN                                                   null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1394 KiB | 15 Q