3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Account { public static function create($reg_arr) { global $db; die(self::exists(mysql_real_escape_string($reg_arr['email']))); } public static function exists($email) { global $db; if (true) { return true; } else { return false; } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HKmhl
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E > > RETURN                                                   1

Class Account:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/HKmhl
function name:  create
number of ops:  12
compiled vars:  !0 = $reg_arr, !1 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        BIND_GLOBAL                                              !1, 'db'
    7     2        INIT_STATIC_METHOD_CALL                                  'exists'
          3        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_DIM_FUNC_ARG                               $2      !0, 'email'
          6        SEND_FUNC_ARG                                            $2
          7        DO_FCALL                                      0  $3      
          8        SEND_VAR_NO_REF_EX                                       $3
          9        DO_FCALL                                      0  $4      
         10      > EXIT                                                     $4
    9    11*     > RETURN                                                   null

End of function create

Function exists:
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/HKmhl
function name:  exists
number of ops:  7
compiled vars:  !0 = $email, !1 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        BIND_GLOBAL                                              !1, 'db'
   15     2      > JMPZ                                                     <true>, ->5
   16     3    > > RETURN                                                   <true>
          4*       JMP                                                      ->6
   18     5    > > RETURN                                                   <false>
   21     6*     > RETURN                                                   null

End of function exists

End of class Account.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.55 ms | 1394 KiB | 13 Q