3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hi80vul() {} $code = 'print("OK");'; function ev($callback) { $callback(); } $str = '\', (ev($code)), \''; mb_ereg_replace('^(.*)$', 'hi80vul(\'\1\')', $str, 'e');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8fZMb
function name:  (null)
number of ops:  9
compiled vars:  !0 = $code, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'print%28%22OK%22%29%3B'
   12     1        ASSIGN                                                   !1, '%27%2C+%28ev%28%24code%29%29%2C+%27'
   13     2        INIT_FCALL                                               'mb_ereg_replace'
          3        SEND_VAL                                                 '%5E%28.%2A%29%24'
          4        SEND_VAL                                                 'hi80vul%28%27%5C1%27%29'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'e'
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function hi80vul

Function ev:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8fZMb
function name:  ev
number of ops:  4
compiled vars:  !0 = $callback
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
   11     3      > RETURN                                                   null

End of function ev

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.26 ms | 1395 KiB | 15 Q