3v4l.org

run code in 300+ PHP versions simultaneously
<?php function post_title_only( $atts ) { $str = get_the_title(); if (strlen($str) <15) { $title_only = 'regular'; } elseif (strlen($str) >= 15) { $title_only = 'posttitleonly'; } return $title_only; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D1qWk
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Function post_title_only:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/D1qWk
function name:  post_title_only
number of ops:  15
compiled vars:  !0 = $atts, !1 = $str, !2 = $title_only
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL_BY_NAME                                       'get_the_title'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
    6     4        STRLEN                                           ~5      !1
          5        IS_SMALLER                                               ~5, 15
          6      > JMPZ                                                     ~6, ->9
    7     7    >   ASSIGN                                                   !2, 'regular'
          8      > JMP                                                      ->13
    8     9    >   STRLEN                                           ~8      !1
         10        IS_SMALLER_OR_EQUAL                                      15, ~8
         11      > JMPZ                                                     ~9, ->13
    9    12    >   ASSIGN                                                   !2, 'posttitleonly'
   11    13    > > RETURN                                                   !2
   12    14*     > RETURN                                                   null

End of function post_title_only

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.21 ms | 1394 KiB | 13 Q