3v4l.org

run code in 300+ PHP versions simultaneously
<?php ncurses_init(); // If the terminal supports colors, initialize and set active color if (ncurses_has_colors()) { ncurses_start_color(); ncurses_init_pair(1, NCURSES_COLOR_YELLOW, NCURSES_COLOR_BLUE); ncurses_color_set(1); } // Write a string at specified location ncurses_mvaddstr(10, 10, "Hello world! Yellow on blue text!"); // Flush output to screen ncurses_refresh(); ncurses_end(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/der4l
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'ncurses_init'
          1        DO_FCALL                                      0          
    5     2        INIT_FCALL_BY_NAME                                       'ncurses_has_colors'
          3        DO_FCALL                                      0  $1      
          4      > JMPZ                                                     $1, ->17
    6     5    >   INIT_FCALL_BY_NAME                                       'ncurses_start_color'
          6        DO_FCALL                                      0          
    7     7        INIT_FCALL_BY_NAME                                       'ncurses_init_pair'
          8        SEND_VAL_EX                                              1
          9        FETCH_CONSTANT                                   ~3      'NCURSES_COLOR_YELLOW'
         10        SEND_VAL_EX                                              ~3
         11        FETCH_CONSTANT                                   ~4      'NCURSES_COLOR_BLUE'
         12        SEND_VAL_EX                                              ~4
         13        DO_FCALL                                      0          
    8    14        INIT_FCALL_BY_NAME                                       'ncurses_color_set'
         15        SEND_VAL_EX                                              1
         16        DO_FCALL                                      0          
   12    17    >   INIT_FCALL_BY_NAME                                       'ncurses_mvaddstr'
         18        SEND_VAL_EX                                              10
         19        SEND_VAL_EX                                              10
         20        SEND_VAL_EX                                              'Hello+world%21+Yellow+on+blue+text%21'
         21        DO_FCALL                                      0          
   15    22        INIT_FCALL_BY_NAME                                       'ncurses_refresh'
         23        DO_FCALL                                      0          
   17    24        INIT_FCALL_BY_NAME                                       'ncurses_end'
         25        DO_FCALL                                      0          
   18    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.53 ms | 1448 KiB | 13 Q