3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '9 - 1'; preg_match_all('/\d+/', $text, $out, PREG_SET_ORDER); var_dump($out); $text = '5-3'; preg_match_all('/\d+/', $text, $out, PREG_SET_ORDER); var_dump($out);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbuHi
function name:  (null)
number of ops:  21
compiled vars:  !0 = $text, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '9+-+1'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Cd%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    8    10        ASSIGN                                                   !0, '5-3'
    9    11        INIT_FCALL                                               'preg_match_all'
         12        SEND_VAL                                                 '%2F%5Cd%2B%2F'
         13        SEND_VAR                                                 !0
         14        SEND_REF                                                 !1
         15        SEND_VAL                                                 2
         16        DO_ICALL                                                 
   10    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156 ms | 1395 KiB | 17 Q