3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = [ "need 4 speed", "4 speed", "speed 4", "4speed", "speed4", "speed2car", "need 4speed", "need4 speed", ]; var_export( preg_replace("~(?<= |^)\d+ | \d+(?= |$)~", '', $lines) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hq9Td
function name:  (null)
number of ops:  10
compiled vars:  !0 = $lines
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'var_export'
   15     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%7E%28%3F%3C%3D+%7C%5E%29%5Cd%2B+%7C+%5Cd%2B%28%3F%3D+%7C%24%29%7E'
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
   14     8        DO_ICALL                                                 
   16     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.44 ms | 997 KiB | 15 Q