3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "<><><"; $open = substr_count($test,'<'); $close = substr_count($test,'>'); if(!$open > $close){ echo $test; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/FhNhT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test, !1 = $open, !2 = $close
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3E%3C%3E%3C'
    4     1        INIT_FCALL                                               'substr_count'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3C'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'substr_count'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '%3E'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    7    11        BOOL_NOT                                         ~8      !1
         12        IS_SMALLER                                               !2, ~8
         13      > JMPZ                                                     ~9, ->15
    8    14    >   ECHO                                                     !0
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.86 ms | 1394 KiB | 15 Q