3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return array(1, 2, 3); } class bar { function foo() { return array(1, 2, 3); } } var_dump(foo::bar()); var_dump(array_pop(foo())); var_dump(array_pop(array(1, 2, 3)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AdoFh
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'foo', 'bar'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_pop'
          7        INIT_FCALL                                               'foo'
          8        DO_FCALL                                      0  $2      
          9        SEND_VAR_NO_REF                               0          $2
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'array_pop'
         15        SEND_VAL_EX                                              <array>
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

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

End of function foo

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

End of function foo

End of class bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.4 ms | 1399 KiB | 18 Q