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) $vu; var_dump($vs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6dPsD
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xs, !1 = $ys, !2 = $us, !3 = $vs, !4 = $vu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $5      'ArrayIterator'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $5
    3     4        CAST                                          7  ~8      !0
          5        ASSIGN                                                   !1, ~8
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        NEW                                              $11     'EmptyIterator'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $11
    6    12        CAST                                          7  ~14     !4
         13        ASSIGN                                                   !3, ~14
    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:
152.22 ms | 1394 KiB | 15 Q