3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export( preg_filter('/💩/u', 'poop', "Mondays are 💩, Tuesdays are 💩, and so on!", 1, $count) ); echo "\n---\ncount: $count\n===\n"; var_export( preg_filter('/💩/u', 'poop', "shiitake", 1, $count) ); echo "\n---\ncount: $count";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fa3Rd
function name:  (null)
number of ops:  28
compiled vars:  !0 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_export'
    4     1        INIT_FCALL                                               'preg_filter'
          2        SEND_VAL                                                 '%2F%F0%9F%92%A9%2Fu'
          3        SEND_VAL                                                 'poop'
          4        SEND_VAL                                                 'Mondays+are+%F0%9F%92%A9%2C+Tuesdays+are+%F0%9F%92%A9%2C+and+so+on%21'
          5        SEND_VAL                                                 1
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    6    10        ROPE_INIT                                     3  ~4      '%0A---%0Acount%3A+'
         11        ROPE_ADD                                      1  ~4      ~4, !0
         12        ROPE_END                                      2  ~3      ~4, '%0A%3D%3D%3D%0A'
         13        ECHO                                                     ~3
    8    14        INIT_FCALL                                               'var_export'
    9    15        INIT_FCALL                                               'preg_filter'
         16        SEND_VAL                                                 '%2F%F0%9F%92%A9%2Fu'
         17        SEND_VAL                                                 'poop'
         18        SEND_VAL                                                 'shiitake'
         19        SEND_VAL                                                 1
         20        SEND_REF                                                 !0
         21        DO_ICALL                                         $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
   11    24        NOP                                                      
         25        FAST_CONCAT                                      ~8      '%0A---%0Acount%3A+', !0
         26        ECHO                                                     ~8
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.9 ms | 1403 KiB | 18 Q