3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public static function keys() { return array(1,2,3); } } var_dump(C::keys(), array('abcd' => C::keys()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SjdLF
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'C', 'keys'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        INIT_STATIC_METHOD_CALL                                  'C', 'keys'
          5        DO_FCALL                                      0  $1      
          6        INIT_ARRAY                                       ~2      $1, 'abcd'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class C:
Function keys:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SjdLF
function name:  keys
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <array>
    8     1*     > RETURN                                                   null

End of function keys

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1394 KiB | 15 Q