3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<POST wow, that film was #hilarious I #love turtles #YouTube has funny videos that I #love <3 POST; preg_match_all('/#(\w+)\b/', $string, $matches); var_dump(array_count_values($matches[0]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m95Xl
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'wow%2C+that+film+was+%23hilarious%0A%0AI+%23love+turtles%0A%0A%23YouTube+has+funny+videos+that+I+%23love+%3C3'
   11     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%23%28%5Cw%2B%29%5Cb%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_count_values'
          8        FETCH_DIM_R                                      ~4      !1, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.63 ms | 1394 KiB | 19 Q