3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "123"; $intVal = intval($query); if ($intVal > 0 && strlen($query) == strlen($intVal)) { echo "is ciId"; } else echo "not";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
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: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/jtDQR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $query, !1 = $intVal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '123'
    5     1        CAST                                          4  ~3      !0
          2        ASSIGN                                                   !1, ~3
    6     3        IS_SMALLER                                       ~5      0, !1
          4      > JMPZ_EX                                          ~5      ~5, ->9
          5    >   STRLEN                                           ~6      !0
          6        STRLEN                                           ~7      !1
          7        IS_EQUAL                                         ~8      ~6, ~7
          8        BOOL                                             ~5      ~8
          9    > > JMPZ                                                     ~5, ->12
    8    10    >   ECHO                                                     'is+ciId'
         11      > JMP                                                      ->13
    9    12    >   ECHO                                                     'not'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.71 ms | 1393 KiB | 13 Q