3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pera = "First line Second line Third line And this is the last line"; $data = array_values( array_filter( explode("\n", $pera) // or just \n ) ); echo $data[1]; // n°line - 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gpgOj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $pera, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'First+line%0A%0ASecond+line%0A%0AThird+line%0A%0AAnd+this+is+the+last+line'
   11     1        INIT_FCALL                                               'array_values'
   12     2        INIT_FCALL                                               'array_filter'
   13     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
   12     8        DO_ICALL                                         $4      
   13     9        SEND_VAR                                                 $4
   11    10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
   17    12        FETCH_DIM_R                                      ~7      !1, 1
         13        ECHO                                                     ~7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.78 ms | 1006 KiB | 16 Q