3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = '91224562ec13207b6e8e18d5b7918f55'; $i = 0; $test = function() use ($i) { return md5($i . '5.5.2.2a1'); }; while ($test() != $d) { echo $test() . "\n"; $i++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/GsZ4g
function name:  (null)
number of ops:  16
compiled vars:  !0 = $d, !1 = $i, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '91224562ec13207b6e8e18d5b7918f55'
    3     1        ASSIGN                                                   !1, 0
    4     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FGsZ4g%3A4%240'
          3        BIND_LEXICAL                                             ~5, !1
          4        ASSIGN                                                   !2, ~5
    7     5      > JMP                                                      ->11
    8     6    >   INIT_DYNAMIC_CALL                                        !2
          7        DO_FCALL                                      0  $7      
          8        CONCAT                                           ~8      $7, '%0A'
          9        ECHO                                                     ~8
    9    10        PRE_INC                                                  !1
    7    11    >   INIT_DYNAMIC_CALL                                        !2
         12        DO_FCALL                                      0  $10     
         13        IS_NOT_EQUAL                                             !0, $10
         14      > JMPNZ                                                    ~11, ->6
   10    15    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FGsZ4g%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GsZ4g
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_STATIC                                              !0
    5     1        INIT_FCALL                                               'md5'
          2        CONCAT                                           ~1      !0, '5.5.2.2a1'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5      > RETURN                                                   $2
    6     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FGsZ4g%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.57 ms | 1396 KiB | 15 Q