3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data[] = null; $data[] = 0; $data[] = 1; $data[] = true; $data[] = false; foreach($data as $value) { $result = is_null($value); echo ("is_null ( " . var_export($value, true) . " ) = " . var_export(is_null($value), true). " \n");}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 29
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/Lv4Zb
function name:  (null)
number of ops:  31
compiled vars:  !0 = $data, !1 = $value, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  null
    5     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  0
    6     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  1
    7     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  <true>
    8     8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  <false>
    9    10      > FE_RESET_R                                       $8      !0, ->29
         11    > > FE_FETCH_R                                               $8, !1, ->29
   11    12    >   TYPE_CHECK                                    2  ~9      !1
         13        ASSIGN                                                   !2, ~9
   12    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $11     
         18        CONCAT                                           ~12     'is_null+%28+', $11
         19        CONCAT                                           ~13     ~12, '+%29+%3D+'
         20        INIT_FCALL                                               'var_export'
         21        TYPE_CHECK                                    2  ~14     !1
         22        SEND_VAL                                                 ~14
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $15     
         25        CONCAT                                           ~16     ~13, $15
         26        CONCAT                                           ~17     ~16, '+%0A'
         27        ECHO                                                     ~17
    9    28      > JMP                                                      ->11
         29    >   FE_FREE                                                  $8
   12    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.66 ms | 1396 KiB | 15 Q