3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xpath = "/bids_offers/market_submit/sem_gen_technical_offer/block_deloading/point[2]"; while ($xpath != "/bids_offers/market_submit") { $xpath = dirname($xpath); echo $xpath; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/c5hXA
function name:  (null)
number of ops:  10
compiled vars:  !0 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fbids_offers%2Fmarket_submit%2Fsem_gen_technical_offer%2Fblock_deloading%2Fpoint%5B2%5D'
    3     1      > JMP                                                      ->7
    4     2    >   INIT_FCALL                                               'dirname'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        ECHO                                                     !0
    3     7    >   IS_NOT_EQUAL                                             !0, '%2Fbids_offers%2Fmarket_submit'
          8      > JMPNZ                                                    ~4, ->2
    6     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.22 ms | 1394 KiB | 15 Q