3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SCONT', 'myfunc'); echo SCONT; function myfunc(){ echo 2; } $a=SCONT; $a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/34oUl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'SCONT'
          2        SEND_VAL                                                 'myfunc'
          3        DO_ICALL                                                 
    4     4        FETCH_CONSTANT                                   ~2      'SCONT'
          5        ECHO                                                     ~2
   10     6        FETCH_CONSTANT                                   ~3      'SCONT'
          7        ASSIGN                                                   !0, ~3
   11     8        INIT_DYNAMIC_CALL                                        !0
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function myfunc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.44 ms | 1386 KiB | 15 Q