3v4l.org

run code in 300+ PHP versions simultaneously
<?php function say($str) { echo $str, "\n"; } $var1 = '123'; $var2 = '456A'; $var3 = '78'; $var4 = (float) $var2; $var5 = (int) $var2; say("$var2 converted to float is: $var4"); say("$var2 converted to int is: $var5"); if ($var1 < $var2) { say("$var1 < $var2"); } if ($var2 < $var3) { say("$var2 < $var3"); } if ($var3 < $var1) { say("$var3 < $var1"); } say ("stop"); if ($var4 < $var3) { say("$var4 < $var3"); } if ($var5 < $var3) { say("$var5 < $var3"); } if ($var3 < $var1) { say("$var3 < $var1"); } say("therefore, as expected,"); if ($var2 < $var3) { say("$var2 < $var3"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 35
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 43
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 54
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 56, Position 2 = 62
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 70
Branch analysis from position: 64
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 81
Branch analysis from position: 75
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 81
Branch analysis from position: 70
Branch analysis from position: 62
Branch analysis from position: 54
Branch analysis from position: 43
Branch analysis from position: 35
Branch analysis from position: 27
filename:       /in/dkevq
function name:  (null)
number of ops:  82
compiled vars:  !0 = $var1, !1 = $var2, !2 = $var3, !3 = $var4, !4 = $var5
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '123'
    6     1        ASSIGN                                                   !1, '456A'
    7     2        ASSIGN                                                   !2, '78'
    9     3        CAST                                          5  ~8      !1
          4        ASSIGN                                                   !3, ~8
   10     5        CAST                                          4  ~10     !1
          6        ASSIGN                                                   !4, ~10
   11     7        INIT_FCALL                                               'say'
          8        ROPE_INIT                                     3  ~13     !1
          9        ROPE_ADD                                      1  ~13     ~13, '+converted+to+float+is%3A+'
         10        ROPE_END                                      2  ~12     ~13, !3
         11        SEND_VAL                                                 ~12
         12        DO_FCALL                                      0          
   12    13        INIT_FCALL                                               'say'
         14        ROPE_INIT                                     3  ~17     !1
         15        ROPE_ADD                                      1  ~17     ~17, '+converted+to+int+is%3A+'
         16        ROPE_END                                      2  ~16     ~17, !4
         17        SEND_VAL                                                 ~16
         18        DO_FCALL                                      0          
   14    19        IS_SMALLER                                               !0, !1
         20      > JMPZ                                                     ~20, ->27
         21    >   INIT_FCALL                                               'say'
         22        ROPE_INIT                                     3  ~22     !0
         23        ROPE_ADD                                      1  ~22     ~22, '+%3C+'
         24        ROPE_END                                      2  ~21     ~22, !1
         25        SEND_VAL                                                 ~21
         26        DO_FCALL                                      0          
   15    27    >   IS_SMALLER                                               !1, !2
         28      > JMPZ                                                     ~25, ->35
         29    >   INIT_FCALL                                               'say'
         30        ROPE_INIT                                     3  ~27     !1
         31        ROPE_ADD                                      1  ~27     ~27, '+%3C+'
         32        ROPE_END                                      2  ~26     ~27, !2
         33        SEND_VAL                                                 ~26
         34        DO_FCALL                                      0          
   16    35    >   IS_SMALLER                                               !2, !0
         36      > JMPZ                                                     ~30, ->43
         37    >   INIT_FCALL                                               'say'
         38        ROPE_INIT                                     3  ~32     !2
         39        ROPE_ADD                                      1  ~32     ~32, '+%3C+'
         40        ROPE_END                                      2  ~31     ~32, !0
         41        SEND_VAL                                                 ~31
         42        DO_FCALL                                      0          
   18    43    >   INIT_FCALL                                               'say'
         44        SEND_VAL                                                 'stop'
         45        DO_FCALL                                      0          
   19    46        IS_SMALLER                                               !3, !2
         47      > JMPZ                                                     ~36, ->54
         48    >   INIT_FCALL                                               'say'
         49        ROPE_INIT                                     3  ~38     !3
         50        ROPE_ADD                                      1  ~38     ~38, '+%3C+'
         51        ROPE_END                                      2  ~37     ~38, !2
         52        SEND_VAL                                                 ~37
         53        DO_FCALL                                      0          
   20    54    >   IS_SMALLER                                               !4, !2
         55      > JMPZ                                                     ~41, ->62
         56    >   INIT_FCALL                                               'say'
         57        ROPE_INIT                                     3  ~43     !4
         58        ROPE_ADD                                      1  ~43     ~43, '+%3C+'
         59        ROPE_END                                      2  ~42     ~43, !2
         60        SEND_VAL                                                 ~42
         61        DO_FCALL                                      0          
   21    62    >   IS_SMALLER                                               !2, !0
         63      > JMPZ                                                     ~46, ->70
         64    >   INIT_FCALL                                               'say'
         65        ROPE_INIT                                     3  ~48     !2
         66        ROPE_ADD                                      1  ~48     ~48, '+%3C+'
         67        ROPE_END                                      2  ~47     ~48, !0
         68        SEND_VAL                                                 ~47
         69        DO_FCALL                                      0          
   22    70    >   INIT_FCALL                                               'say'
         71        SEND_VAL                                                 'therefore%2C+as+expected%2C'
         72        DO_FCALL                                      0          
   23    73        IS_SMALLER                                               !1, !2
         74      > JMPZ                                                     ~52, ->81
         75    >   INIT_FCALL                                               'say'
         76        ROPE_INIT                                     3  ~54     !1
         77        ROPE_ADD                                      1  ~54     ~54, '+%3C+'
         78        ROPE_END                                      2  ~53     ~54, !2
         79        SEND_VAL                                                 ~53
         80        DO_FCALL                                      0          
         81    > > RETURN                                                   1

Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dkevq
function name:  say
number of ops:  4
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2        ECHO                                                     '%0A'
          3      > RETURN                                                   null

End of function say

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.39 ms | 1406 KiB | 24 Q