3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_string() { return 'foo'; } if ($string = get_string() && 1 == TRUE) { var_dump($string); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/vUj7C
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'get_string'
          1        DO_FCALL                                      0  $1      
          2      > JMPZ_EX                                          ~2      $1, ->4
          3    >   BOOL                                             ~2      <true>
          4    >   ASSIGN                                           ~3      !0, ~2
          5      > JMPZ                                                     ~3, ->9
    7     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    8     9    > > RETURN                                                   1

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

End of function get_string

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.21 ms | 942 KiB | 17 Q