3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; function nullTest($x){ if ($x == 0) { $funct = "Не указано"; } else { $funct = $x; } } $null = nullTest($x); echo " $null";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfoHJ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x, !1 = $null
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
   11     1        INIT_FCALL                                               'nulltest'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   12     5        NOP                                                      
          6        FAST_CONCAT                                      ~5      '+', !1
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Function nulltest:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfoHJ
function name:  nullTest
number of ops:  7
compiled vars:  !0 = $x, !1 = $funct
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        IS_EQUAL                                                 !0, 0
          2      > JMPZ                                                     ~2, ->5
    5     3    >   ASSIGN                                                   !1, '%D0%9D%D0%B5+%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BE'
          4      > JMP                                                      ->6
    8     5    >   ASSIGN                                                   !1, !0
   10     6    > > RETURN                                                   null

End of function nulltest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.05 ms | 1389 KiB | 14 Q