3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class='toto'; $args = array('ok'); return new $class( $args );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZ9m4
function name:  (null)
number of ops:  8
compiled vars:  !0 = $class, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'toto'
    3     1        ASSIGN                                                   !1, <array>
    4     2        FETCH_CLASS                                   0  $4      !0
          3        NEW                                              $5      $4
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   $5
          7*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.51 ms | 1392 KiB | 13 Q