3v4l.org

run code in 300+ PHP versions simultaneously
<?php $css = ' .some_class { font-size: 11px; margin-left: 0.45px; margin-top:11.0005px; border: 1.1px solid blue; } .another_class { background: rgba(0, 0, 0, 0.2); width: 100%; color: #012345; z-index: 12; font-size: calc(100% + 888.888px); }'; $pattern = "/\b\d{1,4}(?:\.\d{1,4})?px/"; var_export(preg_match_all($pattern, $css, $matches) ? $matches[0] : 'fail');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oufTK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $css, !1 = $pattern, !2 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%0A.some_class+%7B%0A++++font-size%3A+11px%3B%0A++++margin-left%3A+0.45px%3B%0A++++margin-top%3A11.0005px%3B%0A++++border%3A+1.1px+solid+blue%3B%0A%7D%0A.another_class+%7B%0A++++background%3A+rgba%280%2C+0%2C+0%2C+0.2%29%3B%0A++++width%3A+100%25%3B%0A++++color%3A+%23012345%3B%0A++++z-index%3A+12%3B%0A++++font-size%3A+calc%28100%25+%2B+888.888px%29%3B%0A%7D'
   16     1        ASSIGN                                                   !1, '%2F%5Cb%5Cd%7B1%2C4%7D%28%3F%3A%5C.%5Cd%7B1%2C4%7D%29%3Fpx%2F'
   18     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'preg_match_all'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->12
          9    >   FETCH_DIM_R                                      ~6      !2, 0
         10        QM_ASSIGN                                        ~7      ~6
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~7      'fail'
         13    >   SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.38 ms | 1011 KiB | 15 Q