3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fnc = create_function('$a', 'eval("\$GLOBALS[\'get\'][] = $a;");'); var_dump($fnc); print_r($fnc); printf($fnc);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8sBr2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $fnc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'create_function'
          1        SEND_VAL_EX                                              '%24a'
          2        SEND_VAL_EX                                              'eval%28%22%5C%24GLOBALS%5B%27get%27%5D%5B%5D+%3D+%24a%3B%22%29%3B'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'printf'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.23 ms | 1394 KiB | 19 Q