3v4l.org

run code in 300+ PHP versions simultaneously
<?php create_function("", "}; function xx($a){return $a;}{"); echo xx(2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tcekf
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   INIT_FCALL_BY_NAME                                       'create_function'
          1        SEND_VAL_EX                                              ''
          2        ROPE_INIT                                     5  ~2      '%7D%3B+function+xx%28'
          3        ROPE_ADD                                      1  ~2      ~2, !0
          4        ROPE_ADD                                      2  ~2      ~2, '%29%7Breturn+'
          5        ROPE_ADD                                      3  ~2      ~2, !0
          6        ROPE_END                                      4  ~1      ~2, '%3B%7D%7B'
          7        SEND_VAL_EX                                              ~1
          8        DO_FCALL                                      0          
    3     9        INIT_FCALL_BY_NAME                                       'xx'
         10        SEND_VAL_EX                                              2
         11        DO_FCALL                                      0  $6      
         12        ECHO                                                     $6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.09 ms | 1393 KiB | 16 Q