3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = [ null, new stdClass(), "asdasdasd", 123123, ]; foreach ($values as $value) { var_dump($value === null); echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ITFhs
function name:  (null)
number of ops:  17
compiled vars:  !0 = $values, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~2      null
    4     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        ADD_ARRAY_ELEMENT                                ~2      $3
    5     4        ADD_ARRAY_ELEMENT                                ~2      'asdasdasd'
    6     5        ADD_ARRAY_ELEMENT                                ~2      123123
    2     6        ASSIGN                                                   !0, ~2
    9     7      > FE_RESET_R                                       $6      !0, ->15
          8    > > FE_FETCH_R                                               $6, !1, ->15
   11     9    >   INIT_FCALL                                               'var_dump'
         10        TYPE_CHECK                                    2  ~7      !1
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                                 
   12    13        ECHO                                                     '%0A'
    9    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $6
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.04 ms | 1395 KiB | 15 Q