3v4l.org

run code in 300+ PHP versions simultaneously
<?php function say($str) { echo $str, "\n"; } $var1 = '123'; $var2 = '456'; $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"); } 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 = 45, Position 2 = 51
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 59
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 67
Branch analysis from position: 61
2 jumps found. (Code = 43) Position 1 = 72, Position 2 = 78
Branch analysis from position: 72
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 78
Branch analysis from position: 67
Branch analysis from position: 59
Branch analysis from position: 51
Branch analysis from position: 43
Branch analysis from position: 35
Branch analysis from position: 27
filename:       /in/YSY0Q
function name:  (null)
number of ops:  79
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, '456'
    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    >   IS_SMALLER                                               !3, !2
         44      > JMPZ                                                     ~35, ->51
         45    >   INIT_FCALL                                               'say'
         46        ROPE_INIT                                     3  ~37     !3
         47        ROPE_ADD                                      1  ~37     ~37, '+%3C+'
         48        ROPE_END                                      2  ~36     ~37, !2
         49        SEND_VAL                                                 ~36
         50        DO_FCALL                                      0          
   19    51    >   IS_SMALLER                                               !4, !2
         52      > JMPZ                                                     ~40, ->59
         53    >   INIT_FCALL                                               'say'
         54        ROPE_INIT                                     3  ~42     !4
         55        ROPE_ADD                                      1  ~42     ~42, '+%3C+'
         56        ROPE_END                                      2  ~41     ~42, !2
         57        SEND_VAL                                                 ~41
         58        DO_FCALL                                      0          
   20    59    >   IS_SMALLER                                               !2, !0
         60      > JMPZ                                                     ~45, ->67
         61    >   INIT_FCALL                                               'say'
         62        ROPE_INIT                                     3  ~47     !2
         63        ROPE_ADD                                      1  ~47     ~47, '+%3C+'
         64        ROPE_END                                      2  ~46     ~47, !0
         65        SEND_VAL                                                 ~46
         66        DO_FCALL                                      0          
   21    67    >   INIT_FCALL                                               'say'
         68        SEND_VAL                                                 'therefore%2C+as+expected%2C'
         69        DO_FCALL                                      0          
   22    70        IS_SMALLER                                               !1, !2
         71      > JMPZ                                                     ~51, ->78
         72    >   INIT_FCALL                                               'say'
         73        ROPE_INIT                                     3  ~53     !1
         74        ROPE_ADD                                      1  ~53     ~53, '+%3C+'
         75        ROPE_END                                      2  ~52     ~53, !2
         76        SEND_VAL                                                 ~52
         77        DO_FCALL                                      0          
         78    > > RETURN                                                   1

Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YSY0Q
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:
163.65 ms | 1407 KiB | 23 Q