3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; class C { public static function f($a = null) { if (isset($a)) { die($a); } $m = __METHOD__; var_dump($m); $m(10); } } C::f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EZpa4
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'My%5CC', 'f'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Class My\C:
Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EZpa4
function name:  f
number of ops:  12
compiled vars:  !0 = $a, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
    6     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~2, ->4
          3    > > EXIT                                                     !0
    7     4    >   ASSIGN                                                   !1, 'My%5CC%3A%3Af'
    8     5        INIT_NS_FCALL_BY_NAME                                    'My%5Cvar_dump'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
    9     8        INIT_DYNAMIC_CALL                                        !1
          9        SEND_VAL_EX                                              10
         10        DO_FCALL                                      0          
   10    11      > RETURN                                                   null

End of function f

End of class My\C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.9 ms | 1395 KiB | 15 Q