3v4l.org

run code in 300+ PHP versions simultaneously
<?php class check { public static function status($type) { if($type == 1) return true; else return false; } } if(check::status(2)) echo 'It is true'; else echo 'It is false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q02pc
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'check', 'status'
          1        SEND_VAL                                                 2
          2        DO_FCALL                                      0  $0      
          3      > JMPZ                                                     $0, ->6
   13     4    >   ECHO                                                     'It+is+true'
          5      > JMP                                                      ->7
   15     6    >   ECHO                                                     'It+is+false'
          7    > > RETURN                                                   1

Class check:
Function status:
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 = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q02pc
function name:  status
number of ops:  7
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        IS_EQUAL                                                 !0, 1
          2      > JMPZ                                                     ~1, ->5
          3    > > RETURN                                                   <true>
          4*       JMP                                                      ->6
    8     5    > > RETURN                                                   <false>
    9     6*     > RETURN                                                   null

End of function status

End of class check.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.26 ms | 1398 KiB | 13 Q