3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newarray = array(); $array = array ( 'fruit1' => 'banana', 'fruit2' => 'apple', 'fruit3' => 'grapes', 'fruit4' => 'orange' ); $newarray = array_values($array); print_r($newarray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3t9Jn
function name:  (null)
number of ops:  10
compiled vars:  !0 = $newarray, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'array_values'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
   11     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.33 ms | 999 KiB | 15 Q