3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all("/(\d+)/", "what is 155 x 77", $matches); list($number1, $number2) = $matches[1]; var_dump($number1, $number2, $matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DcAsX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $matches, !1 = $number1, !2 = $number2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match_all'
          1        SEND_VAL                                                 '%2F%28%5Cd%2B%29%2F'
          2        SEND_VAL                                                 'what+is+155+x+77'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    4     5        FETCH_DIM_R                                      ~4      !0, 1
          6        FETCH_LIST_R                                     $5      ~4, 0
          7        ASSIGN                                                   !1, $5
          8        FETCH_LIST_R                                     $7      ~4, 1
          9        ASSIGN                                                   !2, $7
         10        FREE                                                     ~4
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
279.01 ms | 1005 KiB | 15 Q