3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xs = new ArrayIterator(array(1, 2, 3, 4)); $ys = (array) $xs; var_dump($ys); $us = new EmptyIterator(); $vs = (array) $us; var_dump($vs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j0Utd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xs, !1 = $ys, !2 = $us, !3 = $vs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    3     4        CAST                                          7  ~7      !0
          5        ASSIGN                                                   !1, ~7
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        NEW                                              $10     'EmptyIterator'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $10
    6    12        CAST                                          7  ~13     !2
         13        ASSIGN                                                   !3, ~13
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.88 ms | 939 KiB | 16 Q