3v4l.org

run code in 300+ PHP versions simultaneously
<?php function post_title_only() { $str = "Hello there folks, this is a long one"; if (strlen($str) <15) { $title_only = 'regular'; } elseif (strlen($str) >= 15) { $title_only = 'posttitleonly'; } echo $title_only; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/seH2J
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 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/seH2J
function name:  post_title_only
number of ops:  12
compiled vars:  !0 = $str, !1 = $title_only
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Hello+there+folks%2C+this+is+a+long+one'
    6     1        STRLEN                                           ~3      !0
          2        IS_SMALLER                                               ~3, 15
          3      > JMPZ                                                     ~4, ->6
    7     4    >   ASSIGN                                                   !1, 'regular'
          5      > JMP                                                      ->10
    8     6    >   STRLEN                                           ~6      !0
          7        IS_SMALLER_OR_EQUAL                                      15, ~6
          8      > JMPZ                                                     ~7, ->10
    9     9    >   ASSIGN                                                   !1, 'posttitleonly'
   11    10    >   ECHO                                                     !1
   12    11      > RETURN                                                   null

End of function post_title_only

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.96 ms | 1393 KiB | 13 Q