3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getArray() { return [1, 2, 3]; } $last = array_pop(getArray()); // 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/0EMo0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_pop'
          1        INIT_FCALL                                               'getarray'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR_NO_REF                               0          $1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    6     6        INIT_FCALL                                               'array_pop'
          7        INIT_FCALL                                               'getarray'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR_NO_REF                               0          $4
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    7    12      > RETURN                                                   1

Function getarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0EMo0
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:
169.78 ms | 942 KiB | 18 Q