3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '9 - 1'; preg_match_all('/\d+/', $text, $out); var_dump($out[0]); var_dump(end($out[0])); $text = '5-3'; preg_match_all('/\d+/', $text, $out); var_dump($out[0]); var_dump(end($out[0]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c0AHC
function name:  (null)
number of ops:  35
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        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        FETCH_DIM_R                                      ~4      !1, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'end'
         12        FETCH_DIM_W                                      $6      !1, 0
         13        SEND_REF                                                 $6
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
   10    17        ASSIGN                                                   !0, '5-3'
   11    18        INIT_FCALL                                               'preg_match_all'
         19        SEND_VAL                                                 '%2F%5Cd%2B%2F'
         20        SEND_VAR                                                 !0
         21        SEND_REF                                                 !1
         22        DO_ICALL                                                 
   12    23        INIT_FCALL                                               'var_dump'
         24        FETCH_DIM_R                                      ~11     !1, 0
         25        SEND_VAL                                                 ~11
         26        DO_ICALL                                                 
   13    27        INIT_FCALL                                               'var_dump'
         28        INIT_FCALL                                               'end'
         29        FETCH_DIM_W                                      $13     !1, 0
         30        SEND_REF                                                 $13
         31        DO_ICALL                                         $14     
         32        SEND_VAR                                                 $14
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.45 ms | 1401 KiB | 19 Q