3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/(\d+)/sU', 'Осталось всего 2', $roomsLeftMatches); $left = isset($roomsLeftMatches[1]) ? $roomsLeftMatches[1] : null; var_dump($left);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tVgQV
function name:  (null)
number of ops:  16
compiled vars:  !0 = $roomsLeftMatches, !1 = $left
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%28%5Cd%2B%29%2FsU'
          2        SEND_VAL                                                 '%D0%9E%D1%81%D1%82%D0%B0%D0%BB%D0%BE%D1%81%D1%8C+%D0%B2%D1%81%D0%B5%D0%B3%D0%BE+2'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    4     5        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 1
          6      > JMPZ                                                     ~3, ->10
          7    >   FETCH_DIM_R                                      ~4      !0, 1
          8        QM_ASSIGN                                        ~5      ~4
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~5      null
         11    >   ASSIGN                                                   !1, ~5
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.59 ms | 1395 KiB | 17 Q