3v4l.org

run code in 300+ PHP versions simultaneously
<?php function say($str) { echo $str, "\n"; } $var1 = 123; $var2 = '456A'; $var3 = 789; $var4 = (float) $var2; $var5 = (int) $var2; if ($var4 < $var3) { say("$var4 < $var3"); } if ($var5 < $var3) { say("$var5 < $var3"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 15
filename:       /in/cUSaI
function name:  (null)
number of ops:  24
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, 789
   10     3        CAST                                          5  ~8      !1
          4        ASSIGN                                                   !3, ~8
   11     5        CAST                                          4  ~10     !1
          6        ASSIGN                                                   !4, ~10
   13     7        IS_SMALLER                                               !3, !2
          8      > JMPZ                                                     ~12, ->15
          9    >   INIT_FCALL                                               'say'
         10        ROPE_INIT                                     3  ~14     !3
         11        ROPE_ADD                                      1  ~14     ~14, '+%3C+'
         12        ROPE_END                                      2  ~13     ~14, !2
         13        SEND_VAL                                                 ~13
         14        DO_FCALL                                      0          
   14    15    >   IS_SMALLER                                               !4, !2
         16      > JMPZ                                                     ~17, ->23
         17    >   INIT_FCALL                                               'say'
         18        ROPE_INIT                                     3  ~19     !4
         19        ROPE_ADD                                      1  ~19     ~19, '+%3C+'
         20        ROPE_END                                      2  ~18     ~19, !2
         21        SEND_VAL                                                 ~18
         22        DO_FCALL                                      0          
         23    > > RETURN                                                   1

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