3v4l.org

run code in 300+ 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 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/ikYDT
function name:  (null)
number of ops:  19
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    >   INIT_FCALL                                               'strpos'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 '%28'
         15        DO_ICALL                                         $7      
         16        TYPE_CHECK                                  1018          $7
         17      > JMPNZ                                                    ~8, ->2
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.28 ms | 1002 KiB | 15 Q