3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo preg_replace(subject: 'Hello 7', pattern: '/[a-z ]/', count: $counted, replacement: '') . "\n" . $counted;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/muBB6
function name:  (null)
number of ops:  11
compiled vars:  !0 = $counted
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'preg_replace'
          1        SEND_VAL                                                     'Hello+7'
          2        SEND_VAL                                                     '%2F%5Ba-z+%5D%2F'
          3        SEND_REF                                                     !0, 'count'
          4        SEND_VAL                                                     ''
          5        CHECK_UNDEF_ARGS                                             
          6        DO_ICALL                                             $1      
          7        CONCAT                                               ~2      $1, '%0A'
          8        CONCAT                                               ~3      ~2, !0
          9        ECHO                                                         ~3
    4    10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.62 ms | 2138 KiB | 14 Q