3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_func_that_returns_array() { return [1,2,3]; } $var = current(some_func_that_returns_array()); var_dump($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7fjja
function name:  (null)
number of ops:  10
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'current'
          1        INIT_FCALL                                               'some_func_that_returns_array'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    9     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function some_func_that_returns_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.75 ms | 1401 KiB | 18 Q