3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '00000000A1234567890-=qwesss €#¢∞§¶¶•ªº– ≠≠rtyuuiop[]\';lkjhgfdsazxcvbnm,./'; $pattern = '/^0+|[^\dA-Za-z]+/i'; $replacement = ''; echo preg_replace($pattern, $replacement, $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E69VX
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $pattern, !2 = $replacement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00000000A1234567890-%3Dqwesss+++++%E2%82%AC%23%C2%A2%E2%88%9E%C2%A7%C2%B6%C2%B6%E2%80%A2%C2%AA%C2%BA%E2%80%93++%E2%89%A0%E2%89%A0rtyuuiop%5B%5D%27%3Blkjhgfdsazxcvbnm%2C.%2F'
    4     1        ASSIGN                                                   !1, '%2F%5E0%2B%7C%5B%5E%5CdA-Za-z%5D%2B%2Fi'
    5     2        ASSIGN                                                   !2, ''
    6     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.03 ms | 1394 KiB | 15 Q