3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ppr($array){ echo '<pre>'; print_r($array); echo '</pre>'; } $brand = 'Fox'; $list = array('Ape','Bat','Cat','Dog','Elk','Fox','G','Hen'); unset($list[$brand]); ppr($list); array_unshift($list,$brand); ppr($list);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3QaA1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $brand, !1 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'Fox'
   11     1        ASSIGN                                                   !1, <array>
   13     2        UNSET_DIM                                                !1, !0
   15     3        INIT_FCALL                                               'ppr'
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0          
   16     6        INIT_FCALL                                               'array_unshift'
          7        SEND_REF                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
   19    10        INIT_FCALL                                               'ppr'
         11        SEND_VAR                                                 !1
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function ppr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3QaA1
function name:  ppr
number of ops:  7
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ECHO                                                     '%3Cpre%3E'
    5     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        ECHO                                                     '%3C%2Fpre%3E'
    7     6      > RETURN                                                   null

End of function ppr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.77 ms | 1397 KiB | 19 Q