3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Captcha{ public static function Captcha($sol){ $random = rand(1, 15); if (empty($sol)) { return 'What is ' . $random . ' + ' . $random . ' '; } $answer = $random + $random; if ($sol != $answer) { return false; } else { return true; } } } for ($i=0; $i < 100; $i++) { echo Captcha::Captcha($i); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/H4Q1n
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
   24     2    >   INIT_STATIC_METHOD_CALL                                  'Captcha', 'Captcha'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
   23     6        PRE_INC                                                  !0
          7    >   IS_SMALLER                                               !0, 100
          8      > JMPNZ                                                    ~4, ->2
   25     9    > > RETURN                                                   1

Class Captcha:
Function captcha:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H4Q1n
function name:  Captcha
number of ops:  21
compiled vars:  !0 = $sol, !1 = $random, !2 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'rand'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 15
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    8     6        ISSET_ISEMPTY_CV                                         !0
          7      > JMPZ                                                     ~5, ->13
    9     8    >   CONCAT                                           ~6      'What+is+', !1
          9        CONCAT                                           ~7      ~6, '+%2B+'
         10        CONCAT                                           ~8      ~7, !1
         11        CONCAT                                           ~9      ~8, '+'
         12      > RETURN                                                   ~9
   12    13    >   ADD                                              ~10     !1, !1
         14        ASSIGN                                                   !2, ~10
   14    15        IS_NOT_EQUAL                                             !0, !2
         16      > JMPZ                                                     ~12, ->19
   16    17    > > RETURN                                                   <false>
   14    18*       JMP                                                      ->20
   18    19    > > RETURN                                                   <true>
   20    20*     > RETURN                                                   null

End of function captcha

End of class Captcha.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.93 ms | 1011 KiB | 14 Q