3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '1234 6514 1254 0014'; $string = md5($string); preg_match('/\d+?/', $string, $matches); echo substr($matches[0], 0, 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kP8N6
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1234+6514+1254+0014'
    4     1        INIT_FCALL                                               'md5'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%2F%5Cd%2B%3F%2F'
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'substr'
         11        FETCH_DIM_R                                      ~6      !1, 0
         12        SEND_VAL                                                 ~6
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $7      
         16        ECHO                                                     $7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.92 ms | 1394 KiB | 19 Q