3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; $a ??= true; $a = [ ['a' => true, 'b' => true], ['a' => false, 'b' => true], ['a' => true, 'b' => true], ['a' => false, 'b' => true] ]; $a = 1; $a += 2 + 3; $a = null; var_dump($a->getTest() ?? false);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BpELT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    5     1        COALESCE                                         ~2      !0
          2        ASSIGN                                           ~3      !0, <true>
          3        QM_ASSIGN                                        ~2      ~3
          4        FREE                                                     ~2
    7     5        ASSIGN                                                   !0, <array>
   14     6        ASSIGN                                                   !0, 1
   15     7        ASSIGN_OP                                     1          !0, 5
   17     8        ASSIGN                                                   !0, null
   19     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'getTest'
         11        DO_FCALL                                      0  $8      
         12        COALESCE                                         ~9      $8
         13        QM_ASSIGN                                        ~9      <false>
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.28 ms | 947 KiB | 16 Q