3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'post: 746', 'post: 2', 'post: 84', ); $array = preg_replace('/^post:\s*([0-9]+)$/', '$1', $array ); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/64fO6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5Epost%3A%5Cs%2A%28%5B0-9%5D%2B%29%24%2F'
          3        SEND_VAL                                                 '%241'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    9     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.13 ms | 1010 KiB | 15 Q