3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new stdclass($a=8); var_dump($a); // Notice: Undefined variable: a var_dump($o1); $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/hBYeQ
function name:  (null)
number of ops:  20
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        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    8    11        NEW                                              $10     'Datetime'
         12        ASSIGN                                           ~11     !3, 'now'
         13        SEND_VAL_EX                                              ~11
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !2, $10
    9    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.38 ms | 1394 KiB | 15 Q