3v4l.org

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

Function readlogs:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RDXdV
function name:  readLogs
number of ops:  13
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%0A++++I%27m+good+how+are+you%0A++++Good+nice+to+meet+you%0A++++What+are+you+doing%3F%0A++++Nothing+much%2C+you%3F'
    8     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%5Cn'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    9     7        COUNT                                            ~6      !0
          8        ASSIGN                                                   !2, ~6
   11     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   12    12      > RETURN                                                   null

End of function readlogs

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.17 ms | 1389 KiB | 18 Q