3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_posix_isatty() { assert('function_exists("posix_isatty")'); return posix_isatty(fopen('php://memory', 'w')); } var_dump( PHP_VERSION, test_posix_isatty() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R8N1L
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
    9     1        SEND_VAL                                                 '8.0.0'
   10     2        INIT_FCALL                                               'test_posix_isatty'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   11     6      > RETURN                                                   1

Function test_posix_isatty:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R8N1L
function name:  test_posix_isatty
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        SEND_VAL                                                 'function_exists%28%22posix_isatty%22%29'
          3        SEND_VAL                                                 'assert%28%27function_exists%28%22posix_isatty%22%29%27%29'
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'posix_isatty'
          6        INIT_FCALL                                               'fopen'
          7        SEND_VAL                                                 'php%3A%2F%2Fmemory'
          8        SEND_VAL                                                 'w'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12      > RETURN                                                   $2
    6    13*     > RETURN                                                   null

End of function test_posix_isatty

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.8 ms | 1402 KiB | 22 Q