3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { static function stat() { echo "C::stat\n"; } function instance() { echo "C::instance\n"; } } function f() { echo "f\n"; } $c = new C; $closure = function () { echo "Closure\n"; }; $f = 'f'; $stat = array('C', 'stat'); $instance = array($c, 'instance'); $closure(); $f(); $stat(); $instance();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6Vrb
function name:  (null)
number of ops:  19
compiled vars:  !0 = $c, !1 = $closure, !2 = $f, !3 = $stat, !4 = $instance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $5      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
   18     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fr6Vrb%3A18%240'
          4        ASSIGN                                                   !1, ~8
   19     5        ASSIGN                                                   !2, 'f'
   20     6        ASSIGN                                                   !3, <array>
   21     7        INIT_ARRAY                                       ~12     !0
          8        ADD_ARRAY_ELEMENT                                ~12     'instance'
          9        ASSIGN                                                   !4, ~12
   23    10        INIT_DYNAMIC_CALL                                        !1
         11        DO_FCALL                                      0          
   24    12        INIT_DYNAMIC_CALL                                        !2
         13        DO_FCALL                                      0          
   25    14        INIT_DYNAMIC_CALL                                        !3
         15        DO_FCALL                                      0          
   26    16        INIT_DYNAMIC_CALL                                        !4
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6Vrb
function name:  f
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'f%0A'
   15     1      > RETURN                                                   null

End of function f

Function %00%7Bclosure%7D%2Fin%2Fr6Vrb%3A18%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6Vrb
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ECHO                                                     'Closure%0A'
          1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fr6Vrb%3A18%240

Class C:
Function stat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6Vrb
function name:  stat
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'C%3A%3Astat%0A'
    6     1      > RETURN                                                   null

End of function stat

Function instance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6Vrb
function name:  instance
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'C%3A%3Ainstance%0A'
   10     1      > RETURN                                                   null

End of function instance

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.65 ms | 1399 KiB | 13 Q