3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Hi My name is firas. yeah. third sentnece. umhm"; $sentences = explode('.', $text); $max_sentences = count($sentences); var_dump( $max_sentences, $sentences);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Z8rT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text, !1 = $sentences, !2 = $max_sentences
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hi+My+name+is+firas.+yeah.+third+sentnece.+umhm'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        COUNT                                            ~6      !1
          7        ASSIGN                                                   !2, ~6
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.82 ms | 1394 KiB | 17 Q