3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello world & good morning. The date is 18.05.2016"; echo substr_count($str, " ")+1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oJJkt
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+world+%26+good+morning.+The+date+is+18.05.2016'
    5     1        INIT_FCALL                                               'substr_count'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '+'
          4        DO_ICALL                                         $2      
          5        ADD                                              ~3      $2, 1
          6        ECHO                                                     ~3
    6     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1008 KiB | 14 Q