3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public static function bar($type = 0) { if ($type == 0) { return array('a'=>'abcedfg'); } else { return array('a' => '1234567890'); } } } var_dump(array_pop(Foo::bar()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jKXpb
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'array_pop'
          2        INIT_STATIC_METHOD_CALL                                      'Foo', 'bar'
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR_NO_REF                                   0          $0
          5        DO_ICALL                                             $1      
          6        SEND_VAR                                                     $1
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jKXpb
function name:  bar
number of ops:  7
compiled vars:  !0 = $type
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                            !0      0
    4     1        IS_EQUAL                                                     !0, 0
          2      > JMPZ                                                         ~1, ->5
    5     3    > > RETURN                                                       <array>
    4     4*       JMP                                                          ->6
    7     5    > > RETURN                                                       <array>
    9     6*     > RETURN                                                       null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.52 ms | 2782 KiB | 15 Q