3v4l.org

run code in 300+ PHP versions simultaneously
<?php $question = "Number? "; function Test() { global $question; static $num; echo $question, ++$num,"\n"; } echo Test(); echo Test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBlN5
function name:  (null)
number of ops:  8
compiled vars:  !0 = $question
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Number%3F+'
   13     1        INIT_FCALL                                               'test'
          2        DO_FCALL                                      0  $2      
          3        ECHO                                                     $2
   14     4        INIT_FCALL                                               'test'
          5        DO_FCALL                                      0  $3      
          6        ECHO                                                     $3
          7      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PBlN5
function name:  Test
number of ops:  7
compiled vars:  !0 = $question, !1 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_GLOBAL                                              !0, 'question'
    8     1        BIND_STATIC                                              !1
   10     2        ECHO                                                     !0
          3        PRE_INC                                          ~2      !1
          4        ECHO                                                     ~2
          5        ECHO                                                     '%0A'
   11     6      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.08 ms | 1397 KiB | 15 Q