3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 21; $target = 20; $yoda = (int)$target <= $count; $non_yoda = (int) $count >= $target; echo "Yoda: $yoda\n"; echo "Non Yoda: $non_yoda\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oTVW0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $count, !1 = $target, !2 = $yoda, !3 = $non_yoda
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 21
    4     1        ASSIGN                                                   !1, 20
    6     2        CAST                                          4  ~6      !1
          3        IS_SMALLER_OR_EQUAL                              ~7      ~6, !0
          4        ASSIGN                                                   !2, ~7
    7     5        CAST                                          4  ~9      !0
          6        IS_SMALLER_OR_EQUAL                              ~10     !1, ~9
          7        ASSIGN                                                   !3, ~10
    9     8        ROPE_INIT                                     3  ~13     'Yoda%3A+'
          9        ROPE_ADD                                      1  ~13     ~13, !2
         10        ROPE_END                                      2  ~12     ~13, '%0A'
         11        ECHO                                                     ~12
   10    12        ROPE_INIT                                     3  ~16     'Non+Yoda%3A+'
         13        ROPE_ADD                                      1  ~16     ~16, !3
         14        ROPE_END                                      2  ~15     ~16, '%0A'
         15        ECHO                                                     ~15
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.84 ms | 1432 KiB | 13 Q