3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; } $foo = new Foo; $arr = array("", " ", FALSE, TRUE, array(), NULL, "0", 0, 0.0, new stdClass, $foo, $foo->bar, "\0"); $headings = array('type', 'if', 'isset', 'empty', 'is_null'); foreach($headings as $heading){ echo pad_str($heading, 20), " | "; } echo "\n"; /* foreach($arr as $val){ echo gettype($val), " | "; } */
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 30
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 30
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/Tv0at
function name:  (null)
number of ops:  33
compiled vars:  !0 = $foo, !1 = $arr, !2 = $headings, !3 = $heading
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    4     3        INIT_ARRAY                                       ~7      ''
          4        ADD_ARRAY_ELEMENT                                ~7      '+'
          5        ADD_ARRAY_ELEMENT                                ~7      <false>
          6        ADD_ARRAY_ELEMENT                                ~7      <true>
          7        ADD_ARRAY_ELEMENT                                ~7      <array>
          8        ADD_ARRAY_ELEMENT                                ~7      null
          9        ADD_ARRAY_ELEMENT                                ~7      '0'
         10        ADD_ARRAY_ELEMENT                                ~7      0
         11        ADD_ARRAY_ELEMENT                                ~7      0
         12        NEW                                              $8      'stdClass'
         13        DO_FCALL                                      0          
         14        ADD_ARRAY_ELEMENT                                ~7      $8
         15        ADD_ARRAY_ELEMENT                                ~7      !0
         16        FETCH_OBJ_R                                      ~10     !0, 'bar'
         17        ADD_ARRAY_ELEMENT                                ~7      ~10
         18        ADD_ARRAY_ELEMENT                                ~7      '%00'
         19        ASSIGN                                                   !1, ~7
    6    20        ASSIGN                                                   !2, <array>
    7    21      > FE_RESET_R                                       $13     !2, ->30
         22    > > FE_FETCH_R                                               $13, !3, ->30
         23    >   INIT_FCALL_BY_NAME                                       'pad_str'
         24        SEND_VAR_EX                                              !3
         25        SEND_VAL_EX                                              20
         26        DO_FCALL                                      0  $14     
         27        ECHO                                                     $14
         28        ECHO                                                     '+%7C+'
         29      > JMP                                                      ->22
         30    >   FE_FREE                                                  $13
    8    31        ECHO                                                     '%0A'
   15    32      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.74 ms | 1395 KiB | 13 Q