3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cf = create_function('', '$hehe = null; exec(\'whoami\', $hehe); print_r($hehe);'); $cf();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QjZON
function name:  (null)
number of ops:  8
compiled vars:  !0 = $cf
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'create_function'
          1        SEND_VAL_EX                                              ''
          2        SEND_VAL_EX                                              '%24hehe+%3D+null%3B+exec%28%27whoami%27%2C+%24hehe%29%3B+print_r%28%24hehe%29%3B'
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.35 ms | 1392 KiB | 16 Q