3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cls {} $c = (new ReflectionMethod('SplStack', 'count'))->getClosure(new SplStack); $c = $c->bindTo(new cls); $c();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tpK16
function name:  (null)
number of ops:  19
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'ReflectionMethod'
          1        SEND_VAL_EX                                              'SplStack'
          2        SEND_VAL_EX                                              'count'
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $1, 'getClosure'
          5        NEW                                              $3      'SplStack'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $3
          8        DO_FCALL                                      0  $5      
          9        ASSIGN                                                   !0, $5
    5    10        INIT_METHOD_CALL                                         !0, 'bindTo'
         11        NEW                                              $7      'cls'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $7
         14        DO_FCALL                                      0  $9      
         15        ASSIGN                                                   !0, $9
    6    16        INIT_DYNAMIC_CALL                                        !0
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Class cls: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.99 ms | 1393 KiB | 13 Q