3v4l.org

run code in 500+ PHP versions simultaneously
<?php $row["height"] = '(163 cm)'; $string= $row['height']; $pos1 = strpos($string, "("); $pos2 = strpos($string, "cm", $pos1); $text = substr($string,$pos1+1,$pos2-2+$pos1); echo $text; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQLtO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $row, !1 = $string, !2 = $pos1, !3 = $pos2, !4 = $text
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                                   !0, 'height'
          1        OP_DATA                                                      '%28163+cm%29'
    3     2        FETCH_DIM_R                                          ~6      !0, 'height'
          3        ASSIGN                                                       !1, ~6
    5     4        FRAMELESS_ICALL_2                strpos              ~8      !1, '%28'
          5        ASSIGN                                                       !2, ~8
    7     6        FRAMELESS_ICALL_3                strpos              ~10     !1, 'cm'
          7        OP_DATA                                                      !2
          8        ASSIGN                                                       !3, ~10
    9     9        ADD                                                  ~12     !2, 1
         10        SUB                                                  ~13     !3, 2
         11        ADD                                                  ~14     ~13, !2
         12        FRAMELESS_ICALL_3                substr              ~15     !1, ~12
         13        OP_DATA                                                      ~14
         14        ASSIGN                                                       !4, ~15
   10    15        ECHO                                                         !4
   11    16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
144.82 ms | 1958 KiB | 17 Q