3v4l.org

run code in 300+ PHP versions simultaneously
<?php $telephone_number = "07793863322"; $value_cut = substr($telephone_number, 0 ,2); if($value_cut == "07"){ echo("mobile");} else{ echo("landline"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1BpdV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $telephone_number, !1 = $value_cut
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '07793863322'
    6     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    8     7        IS_EQUAL                                                 !1, '07'
          8      > JMPZ                                                     ~5, ->11
    9     9    >   ECHO                                                     'mobile'
         10      > JMP                                                      ->12
   12    11    >   ECHO                                                     'landline'
   13    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
223.65 ms | 1394 KiB | 15 Q