3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'hello'; $hashed = md5($password); var_dump('Hash to match: ' . $hashed); class HashCracker { private $range; private $length = 32; private $cycles = 1000; public function __construct() { $this->range = range('0', 'z'); } public function runBenchmark() { die(var_dump($this->range)); } } (new HashCracker())->runBenchmark();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0QruT
function name:  (null)
number of ops:  14
compiled vars:  !0 = $password, !1 = $hashed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'hello'
    4     1        INIT_FCALL                                               'md5'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'var_dump'
          6        CONCAT                                           ~5      'Hash+to+match%3A+', !1
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
   27     9        NEW                                              $7      'HashCracker'
         10        DO_FCALL                                      0          
         11        INIT_METHOD_CALL                                         $7, 'runBenchmark'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Class HashCracker:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0QruT
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 '0'
          2        SEND_VAL                                                 'z'
          3        DO_ICALL                                         $1      
          4        ASSIGN_OBJ                                               'range'
          5        OP_DATA                                                  $1
   19     6      > RETURN                                                   null

End of function __construct

Function runbenchmark:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/0QruT
function name:  runBenchmark
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'range'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                         $1      
          4      > EXIT                                                     $1
   24     5*     > RETURN                                                   null

End of function runbenchmark

End of class HashCracker.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.36 ms | 1396 KiB | 19 Q