3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() {} function bar() {return null;} $x=foo(); $y=bar(); echo gettype($x)."\n"; echo gettype($y)."\n"; echo isset($x)?"true\n":"false\n"; echo isset($y)?"true\n":"false\n"; echo is_null($x)?"true\n":"false\n"; echo is_null($y)?"true\n":"false\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
Branch analysis from position: 34
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
Branch analysis from position: 28
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
Branch analysis from position: 22
filename:       /in/UHCMA
function name:  (null)
number of ops:  37
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    7     3        INIT_FCALL                                               'bar'
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
    9     6        GET_TYPE                                         ~6      !0
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
   10     9        GET_TYPE                                         ~8      !1
         10        CONCAT                                           ~9      ~8, '%0A'
         11        ECHO                                                     ~9
   12    12        ISSET_ISEMPTY_CV                                         !0
         13      > JMPZ                                                     ~10, ->16
         14    >   QM_ASSIGN                                        ~11     'true%0A'
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~11     'false%0A'
         17    >   ECHO                                                     ~11
   13    18        ISSET_ISEMPTY_CV                                         !1
         19      > JMPZ                                                     ~12, ->22
         20    >   QM_ASSIGN                                        ~13     'true%0A'
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~13     'false%0A'
         23    >   ECHO                                                     ~13
   15    24        TYPE_CHECK                                    2          !0
         25      > JMPZ                                                     ~14, ->28
         26    >   QM_ASSIGN                                        ~15     'true%0A'
         27      > JMP                                                      ->29
         28    >   QM_ASSIGN                                        ~15     'false%0A'
         29    >   ECHO                                                     ~15
   16    30        TYPE_CHECK                                    2          !1
         31      > JMPZ                                                     ~16, ->34
         32    >   QM_ASSIGN                                        ~17     'true%0A'
         33      > JMP                                                      ->35
         34    >   QM_ASSIGN                                        ~17     'false%0A'
         35    >   ECHO                                                     ~17
         36      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UHCMA
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UHCMA
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null
          1*     > RETURN                                                   null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.72 ms | 1403 KiB | 15 Q