3v4l.org

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

Function id:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2R8Vp
function name:  id
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1      > RETURN                                                       !0
          2*     > RETURN                                                       null

End of function id

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
205.28 ms | 2529 KiB | 16 Q