3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getArray() { return [1, 2, 3]; } $stack = array("orange", "banana", "apple", "raspberry"); $last = array_pop($stack); // Strict Standards: Only variables should be passed by reference $last = array_pop((getArray())); // Strict Standards: Only variables should be passed by reference
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J5Qlk
function name:  (null)
number of ops:  12
compiled vars:  !0 = $stack, !1 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_pop'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    7     5        INIT_FCALL                                               'array_pop'
          6        INIT_FCALL                                               'getarray'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR_NO_REF                               0          $5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    8    11      > RETURN                                                   1

Function getarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J5Qlk
function name:  getArray
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   <array>
          1*     > RETURN                                                   null

End of function getarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
219.13 ms | 1397 KiB | 16 Q