3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SCONT', 'myfunc'); echo SCONT; function myfunc(){ echo 2; } SCONT();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tc8c7
function name:  (null)
number of ops:  9
compiled vars:  none
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                                   ~1      'SCONT'
          5        ECHO                                                     ~1
   10     6        INIT_FCALL_BY_NAME                                       'SCONT'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tc8c7
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:
156.05 ms | 1394 KiB | 15 Q