3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fservice[0]['name'] = 'Air Con Re-Gas'; echo str_word_count($fservice[0]['name'],0,'-');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W9VlK
function name:  (null)
number of ops:  12
compiled vars:  !0 = $fservice
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                      $1      !0, 0
          1        ASSIGN_DIM                                               $1, 'name'
          2        OP_DATA                                                  'Air+Con+Re-Gas'
    5     3        INIT_FCALL                                               'str_word_count'
          4        FETCH_DIM_R                                      ~3      !0, 0
          5        FETCH_DIM_R                                      ~4      ~3, 'name'
          6        SEND_VAL                                                 ~4
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 '-'
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.88 ms | 1385 KiB | 15 Q