3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); function nodefault($a) { echo is_array($a)?'true':'false'; } function hasdefault($a = null) { echo is_array($a)?'true':'false'; } $a = null; echo is_array($a)?'true':'false'; echo hasdefault($a)?'true':'false'; echo nodefault($a)?'true':'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
Branch analysis from position: 24
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
Branch analysis from position: 16
filename:       /in/Y5iJO
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   11     3        ASSIGN                                                   !0, null
   12     4        TYPE_CHECK                                  128          !0
          5      > JMPZ                                                     ~3, ->8
          6    >   QM_ASSIGN                                        ~4      'true'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~4      'false'
          9    >   ECHO                                                     ~4
   13    10        INIT_FCALL                                               'hasdefault'
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0  $5      
         13      > JMPZ                                                     $5, ->16
         14    >   QM_ASSIGN                                        ~6      'true'
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~6      'false'
         17    >   ECHO                                                     ~6
   14    18        INIT_FCALL                                               'nodefault'
         19        SEND_VAR                                                 !0
         20        DO_FCALL                                      0  $7      
         21      > JMPZ                                                     $7, ->24
         22    >   QM_ASSIGN                                        ~8      'true'
         23      > JMP                                                      ->25
         24    >   QM_ASSIGN                                        ~8      'false'
         25    >   ECHO                                                     ~8
         26      > RETURN                                                   1

Function nodefault:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y5iJO
function name:  nodefault
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      'true'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      'false'
          6    >   ECHO                                                     ~2
    5     7      > RETURN                                                   null

End of function nodefault

Function hasdefault:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y5iJO
function name:  hasdefault
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      null
    8     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~1, ->5
          3    >   QM_ASSIGN                                        ~2      'true'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~2      'false'
          6    >   ECHO                                                     ~2
    9     7      > RETURN                                                   null

End of function hasdefault

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.55 ms | 1403 KiB | 17 Q