3v4l.org

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

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

End of function dangerous

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.84 ms | 1394 KiB | 15 Q