3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "💩 happens", "I'm getting too old for this 💩", "shiitake", "Mondays are 💩, Tuesdays are 💩, and so on!", "Here is your Finnish itinerary", "Is this chocolate or 💩?" ]; var_export( preg_filter('/💩/u', 'poop', $array, 1, $count) ); echo "\n---\ncount: $count";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iHFSS
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'var_export'
   12     2        INIT_FCALL                                               'preg_filter'
          3        SEND_VAL                                                 '%2F%F0%9F%92%A9%2Fu'
          4        SEND_VAL                                                 'poop'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 1
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
   11    10        DO_ICALL                                                 
   14    11        NOP                                                      
         12        FAST_CONCAT                                      ~5      '%0A---%0Acount%3A+', !1
         13        ECHO                                                     ~5
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.36 ms | 1010 KiB | 15 Q