3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = create_function('', 'return 123;'); $ref = new ReflectionFunction($func); $closure = $ref->getClosure(); $func(); $closure();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/runjL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $func, !1 = $ref, !2 = $closure
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'create_function'
          1        SEND_VAL_EX                                              ''
          2        SEND_VAL_EX                                              'return+123%3B'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    4     5        NEW                                              $5      'ReflectionFunction'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
    5     9        INIT_METHOD_CALL                                         !1, 'getClosure'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    7    12        INIT_DYNAMIC_CALL                                        !0
         13        DO_FCALL                                      0          
    8    14        INIT_DYNAMIC_CALL                                        !2
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.72 ms | 1397 KiB | 13 Q