3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = array ( "phone_number" => "9088886655", "phone_number_2" => NULL, "phone_number_3" => NULL ); if(empty($row['phone_number']) && empty($row['phone_number_2']) && empty($row['phone_number_3'])) print('yf1'); if(!empty($row['phone_number']) && !check_phone($row['phone_number'])) print('yf2'); if(!empty($row['phone_number_2']) && !check_phone($row['phone_number_2'])) print('yf3'); if(!empty($row['phone_number_3']) && !check_phone($row['phone_number_3'])) print('yf4'); function check_phone($v) { print('y'.$v); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 32
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
2 jumps found. (Code = 46) Position 1 = 37, Position 2 = 44
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 46
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 44
Branch analysis from position: 34
Branch analysis from position: 32
Branch analysis from position: 22
Branch analysis from position: 20
Branch analysis from position: 10
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/KP4jL
function name:  (null)
number of ops:  47
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        ISSET_ISEMPTY_DIM_OBJ                         1  ~2      !0, 'phone_number'
          2      > JMPZ_EX                                          ~2      ~2, ->5
          3    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~3      !0, 'phone_number_2'
          4        BOOL                                             ~2      ~3
          5    > > JMPZ_EX                                          ~2      ~2, ->8
          6    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !0, 'phone_number_3'
          7        BOOL                                             ~2      ~4
          8    > > JMPZ                                                     ~2, ->10
          9    >   ECHO                                                     'yf1'
   11    10    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~5      !0, 'phone_number'
         11        BOOL_NOT                                         ~6      ~5
         12      > JMPZ_EX                                          ~6      ~6, ->20
         13    >   INIT_FCALL_BY_NAME                                       'check_phone'
         14        CHECK_FUNC_ARG                                           
         15        FETCH_DIM_FUNC_ARG                               $7      !0, 'phone_number'
         16        SEND_FUNC_ARG                                            $7
         17        DO_FCALL                                      0  $8      
         18        BOOL_NOT                                         ~9      $8
         19        BOOL                                             ~6      ~9
         20    > > JMPZ                                                     ~6, ->22
         21    >   ECHO                                                     'yf2'
   12    22    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~10     !0, 'phone_number_2'
         23        BOOL_NOT                                         ~11     ~10
         24      > JMPZ_EX                                          ~11     ~11, ->32
         25    >   INIT_FCALL_BY_NAME                                       'check_phone'
         26        CHECK_FUNC_ARG                                           
         27        FETCH_DIM_FUNC_ARG                               $12     !0, 'phone_number_2'
         28        SEND_FUNC_ARG                                            $12
         29        DO_FCALL                                      0  $13     
         30        BOOL_NOT                                         ~14     $13
         31        BOOL                                             ~11     ~14
         32    > > JMPZ                                                     ~11, ->34
         33    >   ECHO                                                     'yf3'
   13    34    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~15     !0, 'phone_number_3'
         35        BOOL_NOT                                         ~16     ~15
         36      > JMPZ_EX                                          ~16     ~16, ->44
         37    >   INIT_FCALL_BY_NAME                                       'check_phone'
         38        CHECK_FUNC_ARG                                           
         39        FETCH_DIM_FUNC_ARG                               $17     !0, 'phone_number_3'
         40        SEND_FUNC_ARG                                            $17
         41        DO_FCALL                                      0  $18     
         42        BOOL_NOT                                         ~19     $18
         43        BOOL                                             ~16     ~19
         44    > > JMPZ                                                     ~16, ->46
         45    >   ECHO                                                     'yf4'
   19    46    > > RETURN                                                   1

Function check_phone:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KP4jL
function name:  check_phone
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        CONCAT                                           ~1      'y', !0
          2        ECHO                                                     ~1
   19     3      > RETURN                                                   null

End of function check_phone

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.04 ms | 1399 KiB | 13 Q