3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arValues = array( 6 => 'hello', 2 => 'world', 5 => 'something' ); $arValues = array_reverse($arValues); $val = array_pop($arValues); $arValues = array_reverse($arValues); var_dump( $val, $arValues);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J5g1t
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arValues, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_reverse'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   10     5        INIT_FCALL                                               'array_pop'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
   11     9        INIT_FCALL                                               'array_reverse'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !0, $7
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.11 ms | 1394 KiB | 19 Q