3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "1234@#$ABCFG3478&*"; $result = preg_replace("/[^A-Z]+/", "", $string); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2trmm
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $ABCFG3478, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ROPE_INIT                                     3  ~4      '1234%40%23'
          1        ROPE_ADD                                      1  ~4      ~4, !1
          2        ROPE_END                                      2  ~3      ~4, '%26%2A'
          3        ASSIGN                                                   !0, ~3
    5     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%5B%5EA-Z%5D%2B%2F'
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.98 ms | 1394 KiB | 17 Q