3v4l.org

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

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

End of function returnnumber

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.35 ms | 1398 KiB | 15 Q