3v4l.org

run code in 300+ PHP versions simultaneously
<?php function readLogs($rows = 5) { $contents = "Hey how are you\nI'm good how are you\nGood nice to meet you\nWhat are you doing?\nNothing much, you?"; $rows = explode('\n', $contents); $rows_len = count($rows); echo $rows; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eBYFN
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   1

Function readlogs:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eBYFN
function name:  readLogs
number of ops:  11
compiled vars:  !0 = $rows, !1 = $contents, !2 = $rows_len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      5
    3     1        ASSIGN                                                   !1, 'Hey+how+are+you%0AI%27m+good+how+are+you%0AGood+nice+to+meet+you%0AWhat+are+you+doing%3F%0ANothing+much%2C+you%3F'
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%5Cn'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    5     7        COUNT                                            ~6      !0
          8        ASSIGN                                                   !2, ~6
    7     9        ECHO                                                     !0
    8    10      > RETURN                                                   null

End of function readlogs

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.06 ms | 1386 KiB | 15 Q