3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.19 ms | 1385 KiB | 15 Q