3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = "/(?<![\d.])(\d{1,2}'|\d{0,2}\.\d{1,2}')?(?![\d.](?=\d))/"; $string = "thee hight is 15'"; preg_match_all($regex,$string,$matches); var_dump($matches); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ljdST
function name:  (null)
number of ops:  11
compiled vars:  !0 = $regex, !1 = $string, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%28%3F%3C%21%5B%5Cd.%5D%29%28%5Cd%7B1%2C2%7D%27%7C%5Cd%7B0%2C2%7D%5C.%5Cd%7B1%2C2%7D%27%29%3F%28%3F%21%5B%5Cd.%5D%28%3F%3D%5Cd%29%29%2F'
    3     1        ASSIGN                                                   !1, 'thee+hight+is+15%27'
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
    6    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.86 ms | 1394 KiB | 17 Q