3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{} $testobj = new MyClass; $teststring = ''; $testinteger = 0; $testfloat = 0.0; $testarray = array(); $testresource = fopen("http://ya.ru", "r"); $testboolean = false; if(empty($testobj)) echo "TestObj is empty - ". gettype($testobj); else var_dump($testobj); if(empty($testnull)) echo 'TestNUll is empty - '. gettype($testnull); // if(empty($teststring)) echo 'TestString is empty - '.gettype($teststring); // if(empty($testinteger)) echo 'TestInteger is empty - '.gettype($testinteger); if(empty($testfloat)) echo 'TestFloat is empty - '.gettype($testfloat); if(empty($testarray)) echo 'TestArray is empty'.gettype($testarray); if(empty($testresource)) echo 'TestResource is empty'.gettype($testresource); else echo "TestResource is not empty"; var_dump($testresource); if(empty($testboolean)) echo 'TestFloat is empty - '.gettype($testboolean); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 42
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 47
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 53
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 62
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 62
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 59, Position 2 = 62
Branch analysis from position: 59
Branch analysis from position: 62
Branch analysis from position: 47
Branch analysis from position: 42
Branch analysis from position: 37
Branch analysis from position: 32
Branch analysis from position: 27
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
Branch analysis from position: 27
filename:       /in/JOs3A
function name:  (null)
number of ops:  63
compiled vars:  !0 = $testobj, !1 = $teststring, !2 = $testinteger, !3 = $testfloat, !4 = $testarray, !5 = $testresource, !6 = $testboolean, !7 = $testnull
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $8      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $8
    4     3        ASSIGN                                                   !1, ''
    5     4        ASSIGN                                                   !2, 0
    6     5        ASSIGN                                                   !3, 0
    7     6        ASSIGN                                                   !4, <array>
    8     7        INIT_FCALL                                               'fopen'
          8        SEND_VAL                                                 'http%3A%2F%2Fya.ru'
          9        SEND_VAL                                                 'r'
         10        DO_ICALL                                         $15     
         11        ASSIGN                                                   !5, $15
    9    12        ASSIGN                                                   !6, <false>
   11    13        ISSET_ISEMPTY_CV                                         !0
         14      > JMPZ                                                     ~18, ->19
   12    15    >   GET_TYPE                                         ~19     !0
         16        CONCAT                                           ~20     'TestObj+is+empty+-+', ~19
         17        ECHO                                                     ~20
         18      > JMP                                                      ->22
   14    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
   16    22    >   ISSET_ISEMPTY_CV                                         !7
         23      > JMPZ                                                     ~22, ->27
   17    24    >   GET_TYPE                                         ~23     !7
         25        CONCAT                                           ~24     'TestNUll+is+empty+-+', ~23
         26        ECHO                                                     ~24
   19    27    >   ISSET_ISEMPTY_CV                                         !1
         28      > JMPZ                                                     ~25, ->32
   20    29    >   GET_TYPE                                         ~26     !1
         30        CONCAT                                           ~27     'TestString+is+empty+-+', ~26
         31        ECHO                                                     ~27
   22    32    >   ISSET_ISEMPTY_CV                                         !2
         33      > JMPZ                                                     ~28, ->37
   23    34    >   GET_TYPE                                         ~29     !2
         35        CONCAT                                           ~30     'TestInteger+is+empty+-+', ~29
         36        ECHO                                                     ~30
   25    37    >   ISSET_ISEMPTY_CV                                         !3
         38      > JMPZ                                                     ~31, ->42
   26    39    >   GET_TYPE                                         ~32     !3
         40        CONCAT                                           ~33     'TestFloat+is+empty+-+', ~32
         41        ECHO                                                     ~33
   28    42    >   ISSET_ISEMPTY_CV                                         !4
         43      > JMPZ                                                     ~34, ->47
   29    44    >   GET_TYPE                                         ~35     !4
         45        CONCAT                                           ~36     'TestArray+is+empty', ~35
         46        ECHO                                                     ~36
   31    47    >   ISSET_ISEMPTY_CV                                         !5
         48      > JMPZ                                                     ~37, ->53
   32    49    >   GET_TYPE                                         ~38     !5
         50        CONCAT                                           ~39     'TestResource+is+empty', ~38
         51        ECHO                                                     ~39
         52      > JMP                                                      ->54
   34    53    >   ECHO                                                     'TestResource+is+not+empty'
   36    54    >   INIT_FCALL                                               'var_dump'
         55        SEND_VAR                                                 !5
         56        DO_ICALL                                                 
   38    57        ISSET_ISEMPTY_CV                                         !6
         58      > JMPZ                                                     ~41, ->62
   39    59    >   GET_TYPE                                         ~42     !6
         60        CONCAT                                           ~43     'TestFloat+is+empty+-+', ~42
         61        ECHO                                                     ~43
   40    62    > > RETURN                                                   1

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.91 ms | 1392 KiB | 17 Q