3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getTransfer($transfer){ if ($transfer === 0) {$transfer = "Без пересадок";} else{ $transfer = $transfer; } return $transfer; } $transfer = 0; ?> <span class="tickets_span"> Количество пересадок: <?php echo getTransfer($transfer); ?></span>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/12iAS
function name:  (null)
number of ops:  8
compiled vars:  !0 = $transfer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 0
   10     1        ECHO                                                     '%0A%3Cspan+class%3D%22tickets_span%22%3E+%D0%9A%D0%BE%D0%BB%D0%B8%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%BE+%D0%BF%D0%B5%D1%80%D0%B5%D1%81%D0%B0%D0%B4%D0%BE%D0%BA%3A+'
   11     2        INIT_FCALL                                               'gettransfer'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
          6        ECHO                                                     '%3C%2Fspan%3E'
          7      > RETURN                                                   1

Function gettransfer:
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/12iAS
function name:  getTransfer
number of ops:  8
compiled vars:  !0 = $transfer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        IS_IDENTICAL                                             !0, 0
          2      > JMPZ                                                     ~1, ->5
          3    >   ASSIGN                                                   !0, '%D0%91%D0%B5%D0%B7+%D0%BF%D0%B5%D1%80%D0%B5%D1%81%D0%B0%D0%B4%D0%BE%D0%BA'
          4      > JMP                                                      ->6
    4     5    >   ASSIGN                                                   !0, !0
    6     6    > > RETURN                                                   !0
    7     7*     > RETURN                                                   null

End of function gettransfer

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.9 ms | 1398 KiB | 14 Q