3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { print __FUNCTION__.PHP_EOL; return 1; } // print foo the first time $a ??= foo(); // no more function calling $a ??= foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9boo8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   COALESCE                                             ~1      !0
          1        INIT_FCALL                                                   'foo'
          2        DO_FCALL                                          0  $2      
          3        ASSIGN                                               ~3      !0, $2
          4        QM_ASSIGN                                            ~1      ~3
          5        FREE                                                         ~1
   11     6        COALESCE                                             ~4      !0
          7        INIT_FCALL                                                   'foo'
          8        DO_FCALL                                          0  $5      
          9        ASSIGN                                               ~6      !0, $5
         10        QM_ASSIGN                                            ~4      ~6
         11        FREE                                                         ~4
         12      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9boo8
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                         'foo%0A'
    5     1      > RETURN                                                       1
    6     2*     > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
123.37 ms | 486 KiB | 11 Q