3v4l.org

run code in 300+ 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/TTdbB
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
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $4      'stdclass'
          1        ASSIGN                                           ~5      !1, 8
          2        SEND_VAL_EX                                              ~5
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    3     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    5     8        NEW                                              $9      'Datetime'
          9        ASSIGN                                           ~10     !3, 'now'
         10        SEND_VAL_EX                                              ~10
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $9
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.97 ms | 1386 KiB | 15 Q