3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; function switchNow($x){ switch ($x) { case 0 : echo "Не указано"; break; default: echo "$x"; } } $x = 0; switchNow();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mdNtg
function name:  (null)
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
   12     1        ASSIGN                                                   !0, 0
   13     2        INIT_FCALL                                               'switchnow'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function switchnow:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 4
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: 4
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
filename:       /in/mdNtg
function name:  switchNow
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        IS_EQUAL                                                 !0, 0
          2      > JMPNZ                                                    ~1, ->4
          3    > > JMP                                                      ->6
    6     4    >   ECHO                                                     '%D0%9D%D0%B5+%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BE'
    7     5      > JMP                                                      ->8
    9     6    >   CAST                                          6  ~2      !0
          7        ECHO                                                     ~2
   11     8    > > RETURN                                                   null

End of function switchnow

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.74 ms | 1397 KiB | 14 Q