3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User{ public function getPassport() { return; } public function getDrivingLicence() { return; } } $user = new User; if (!$user->getPassport() && !$user->getDrivingLicence()) { echo 'done'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 11
filename:       /in/MKe51
function name:  (null)
number of ops:  14
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'User'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_METHOD_CALL                                         !0, 'getPassport'
          4        DO_FCALL                                      0  $4      
          5        BOOL_NOT                                         ~5      $4
          6      > JMPZ_EX                                          ~5      ~5, ->11
          7    >   INIT_METHOD_CALL                                         !0, 'getDrivingLicence'
          8        DO_FCALL                                      0  $6      
          9        BOOL_NOT                                         ~7      $6
         10        BOOL                                             ~5      ~7
         11    > > JMPZ                                                     ~5, ->13
   17    12    >   ECHO                                                     'done'
   18    13    > > RETURN                                                   1

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

End of function getpassport

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

End of function getdrivinglicence

End of class User.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.95 ms | 1398 KiB | 13 Q