3v4l.org

run code in 500+ PHP versions simultaneously
<?php $o1 = new stdclass($a=8); var_dump($a); // Notice: Undefined variable: a $o2 = new Datetime($b='now'); var_dump($b); // string "now"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5AFSA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $o1, !1 = $a, !2 = $o2, !3 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $4      'stdclass'
          1        ASSIGN                                               ~5      !1, 8
          2        SEND_VAL_EX                                                  ~5
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $4
    4     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                                     
    6     8        NEW                                                  $9      'Datetime'
          9        ASSIGN                                               ~10     !3, 'now'
         10        SEND_VAL_EX                                                  ~10
         11        DO_FCALL                                          0          
         12        ASSIGN                                                       !2, $9
    7    13        INIT_FCALL                                                   'var_dump'
         14        SEND_VAR                                                     !3
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.15 ms | 2796 KiB | 14 Q