3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static function getOut() { return "bar"; } } $mailerFactoryClass = "foo"; $out = $mailerFactoryClass::getOut(); echo $out;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nOoTL
function name:  (null)
number of ops:  7
compiled vars:  !0 = $mailerFactoryClass, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'foo'
    9     1        FETCH_CLASS                                   0  $3      !0
          2        INIT_STATIC_METHOD_CALL                                  $3, 'getOut'
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                                   !1, $4
   10     5        ECHO                                                     !1
          6      > RETURN                                                   1

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

End of function getout

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1393 KiB | 13 Q