3v4l.org

run code in 300+ PHP versions simultaneously
<?php $challenge = function() { $f = Common::getGetString('eval'); $f = str_replace(array('`', '$', '*', '#', ':', '\\', '"', "'", '(', ')', '.', '>'), '', $f); if((strlen($f) > 13) || (false !== strpos($f, 'return'))) { die('sorry, not allowed!'); } try { eval("\$spaceone = $f"); } catch (Exception $e) { return false; } return ($spaceone === '1337'); };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o3e6u
function name:  (null)
number of ops:  3
compiled vars:  !0 = $challenge
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fo3e6u%3A2%240'
          1        ASSIGN                                                   !0, ~1
   22     2      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fo3e6u%3A2%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Found catch point at position: 25
Branch analysis from position: 25
2 jumps found. (Code = 107) Position 1 = 26, Position 2 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o3e6u
function name:  {closure}
number of ops:  30
compiled vars:  !0 = $f, !1 = $e, !2 = $spaceone
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  'Common', 'getGetString'
          1        SEND_VAL_EX                                              'eval'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 <array>
          6        SEND_VAL                                                 ''
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    7    10        STRLEN                                           ~7      !0
         11        IS_SMALLER                                       ~8      13, ~7
         12      > JMPNZ_EX                                         ~8      ~8, ->19
         13    >   INIT_FCALL                                               'strpos'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'return'
         16        DO_ICALL                                         $9      
         17        TYPE_CHECK                                  1018  ~10     $9
         18        BOOL                                             ~8      ~10
         19    > > JMPZ                                                     ~8, ->21
    9    20    > > EXIT                                                     'sorry%2C+not+allowed%21'
   14    21    >   NOP                                                      
         22        FAST_CONCAT                                      ~11     '%24spaceone+%3D+', !0
         23        INCLUDE_OR_EVAL                                          ~11, EVAL
         24      > JMP                                                      ->27
   16    25  E > > CATCH                                       last         'Exception'
   18    26    > > RETURN                                                   <false>
   21    27    >   IS_IDENTICAL                                     ~13     !2, '1337'
         28      > RETURN                                                   ~13
   22    29*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fo3e6u%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.83 ms | 1400 KiB | 17 Q