3v4l.org

run code in 300+ PHP versions simultaneously
<?php $challenge = function() { $f = $_GET['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/NVYbT
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%2FNVYbT%3A2%240'
          1        ASSIGN                                                   !0, ~1
   22     2      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.42 ms | 1400 KiB | 17 Q