3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'INT(13)'; $new_length = (int) preg_replace('/\D/', '', $subject); var_dump((int) preg_split('/\(/', $subject)[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vMGoM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $subject, !1 = $new_length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'INT%2813%29'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5CD%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        CAST                                          4  ~4      $3
          7        ASSIGN                                                   !1, ~4
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_split'
         10        SEND_VAL                                                 '%2F%5C%28%2F'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        FETCH_DIM_R                                      ~7      $6, 1
         14        CAST                                          4  ~8      ~7
         15        SEND_VAL                                                 ~8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.86 ms | 1394 KiB | 19 Q