3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = array(); $str_n = array(); $str[0] = "Shockwave Flash 14.0 r0"; //$str_n[0] = mb_strstr($str[0],[^0-9]); echo mb_ereg_replace('[^0-9]', '', $str[0]).' '; echo mb_ereg_replace('[0-9]', '', $str[0]).' '; echo mb_ereg_replace('/[0-9]+/', '', $str[0]); //echo $str_n[0]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZactJ
function name:  (null)
number of ops:  28
compiled vars:  !0 = $str, !1 = $str_n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN_DIM                                               !0, 0
          3        OP_DATA                                                  'Shockwave+Flash+14.0+r0'
    6     4        INIT_FCALL                                               'mb_ereg_replace'
          5        SEND_VAL                                                 '%5B%5E0-9%5D'
          6        SEND_VAL                                                 ''
          7        FETCH_DIM_R                                      ~5      !0, 0
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '+++++++'
         11        ECHO                                                     ~7
    7    12        INIT_FCALL                                               'mb_ereg_replace'
         13        SEND_VAL                                                 '%5B0-9%5D'
         14        SEND_VAL                                                 ''
         15        FETCH_DIM_R                                      ~8      !0, 0
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18        CONCAT                                           ~10     $9, '+++++++'
         19        ECHO                                                     ~10
    8    20        INIT_FCALL                                               'mb_ereg_replace'
         21        SEND_VAL                                                 '%2F%5B0-9%5D%2B%2F'
         22        SEND_VAL                                                 ''
         23        FETCH_DIM_R                                      ~11     !0, 0
         24        SEND_VAL                                                 ~11
         25        DO_ICALL                                         $12     
         26        ECHO                                                     $12
   10    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1395 KiB | 15 Q