3v4l.org

run code in 500+ PHP versions simultaneously
<?php $truth = "((A^¬B)->C)"; while (strpos($truth, '(') !== false) { preg_match("~^[^(]*\((.*?)\)[^)]*$~", $truth, $str); $truth = $str[1]; echo "$truth\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/ikYDT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $truth, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%28%28A%5E%C2%ACB%29-%3EC%29'
    4     1      > JMP                                                          ->12
    5     2    >   INIT_FCALL                                                   'preg_match'
          3        SEND_VAL                                                     '%7E%5E%5B%5E%28%5D%2A%5C%28%28.%2A%3F%29%5C%29%5B%5E%29%5D%2A%24%7E'
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !1
          6        DO_ICALL                                                     
    6     7        FETCH_DIM_R                                          ~4      !1, 1
          8        ASSIGN                                                       !0, ~4
    7     9        NOP                                                          
         10        FAST_CONCAT                                          ~6      !0, '%0A'
         11        ECHO                                                         ~6
    4    12    >   FRAMELESS_ICALL_2                strpos              ~7      !0, '%28'
         13        TYPE_CHECK                                      1018          ~7
         14      > JMPNZ                                                        ~8, ->2
    8    15    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.63 ms | 2525 KiB | 14 Q