3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testFunction() { static $output = NULL; if( is_null( $output ) ) { $output = "setting value<br><br>"; } return $output; } testFunction(); testFunction();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gf5lE
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'testfunction'
          1        DO_FCALL                                      0          
   13     2        INIT_FCALL                                               'testfunction'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function testfunction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/Gf5lE
function name:  testFunction
number of ops:  6
compiled vars:  !0 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    6     1        TYPE_CHECK                                    2          !0
          2      > JMPZ                                                     ~1, ->4
    7     3    >   ASSIGN                                                   !0, 'setting+value%3Cbr%3E%3Cbr%3E'
    9     4    > > RETURN                                                   !0
   10     5*     > RETURN                                                   null

End of function testfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.73 ms | 1388 KiB | 15 Q