3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = substr(strtolower((string) array()),0,1); $counter = 0; $sp = chr( (5*6) +2); $data = array( (12*12) +3, pow(2,8)-pow(2,2), pow(3,2) * 571, 2*3*797, 97 * 127, 2*6353); $chars = array(); for ($counter=0; $counter < 15000; $counter++) { if (in_array($counter, $data)) { $chars[] = $d; } $d++; } $func = strrev($chars[5]). $chars[4]; echo $func($chars[3]).$chars[0] . $sp . $chars[1] . $sp . $chars[2];
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 50
Branch analysis from position: 50
Jump found. Position 1 = 52, Position 2 = 39
Branch analysis from position: 52
Jump found. Position 1 = -2
Branch analysis from position: 39
Jump found. Position 1 = 44, Position 2 = 46
Branch analysis from position: 44
Jump found. Position 1 = 52, Position 2 = 39
Branch analysis from position: 52
Branch analysis from position: 39
Branch analysis from position: 46
filename:       /in/0gJF6
function name:  (null)
number of ops:  73
compiled vars:  !0 = $d, !1 = $counter, !2 = $sp, !3 = $data, !4 = $chars, !5 = $func
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'substr'
         1        INIT_FCALL                                               'strtolower'
         2        CAST                                          6  ~6      <array>
         3        SEND_VAL                                                 ~6
         4        DO_ICALL                                         $7      
         5        SEND_VAR                                                 $7
         6        SEND_VAL                                                 0
         7        SEND_VAL                                                 1
         8        DO_ICALL                                         $8      
         9        ASSIGN                                                   !0, $8
   4    10        ASSIGN                                                   !1, 0
   5    11        INIT_FCALL                                               'chr'
        12        SEND_VAL                                                 32
        13        DO_ICALL                                         $11     
        14        ASSIGN                                                   !2, $11
   8    15        INIT_ARRAY                                       ~13     147
        16        INIT_FCALL                                               'pow'
        17        SEND_VAL                                                 2
        18        SEND_VAL                                                 8
        19        DO_ICALL                                         $14     
        20        INIT_FCALL                                               'pow'
        21        SEND_VAL                                                 2
        22        SEND_VAL                                                 2
        23        DO_ICALL                                         $15     
        24        SUB                                              ~16     $14, $15
        25        ADD_ARRAY_ELEMENT                                ~13     ~16
        26        INIT_FCALL                                               'pow'
        27        SEND_VAL                                                 3
        28        SEND_VAL                                                 2
        29        DO_ICALL                                         $17     
        30        MUL                                              ~18     $17, 571
        31        ADD_ARRAY_ELEMENT                                ~13     ~18
        32        ADD_ARRAY_ELEMENT                                ~13     4782
        33        ADD_ARRAY_ELEMENT                                ~13     12319
        34        ADD_ARRAY_ELEMENT                                ~13     12706
        35        ASSIGN                                                   !3, ~13
  11    36        ASSIGN                                                   !4, <array>
  12    37        ASSIGN                                                   !1, 0
        38      > JMP                                                      ->50
  13    39    >   INIT_FCALL                                               'in_array'
        40        SEND_VAR                                                 !1
        41        SEND_VAR                                                 !3
        42        DO_ICALL                                         $22     
        43      > JMPZ                                                     $22, ->46
  14    44    >   ASSIGN_DIM                                               !4
        45        OP_DATA                                                  !0
  16    46    >   POST_INC                                         ~24     !0
        47        FREE                                                     ~24
  12    48        POST_INC                                         ~25     !1
        49        FREE                                                     ~25
        50    >   IS_SMALLER                                       ~26     !1, 15000
        51      > JMPNZ                                                    ~26, ->39
  19    52    >   INIT_FCALL                                               'strrev'
        53        FETCH_DIM_R                                      $27     !4, 5
        54        SEND_VAR                                                 $27
        55        DO_ICALL                                         $28     
        56        FETCH_DIM_R                                      $29     !4, 4
        57        CONCAT                                           ~30     $28, $29
        58        ASSIGN                                                   !5, ~30
  21    59        INIT_DYNAMIC_CALL                                        !5
        60        FETCH_DIM_FUNC_ARG                               $32     !4, 3
        61        SEND_VAR_EX                                              $32
        62        DO_FCALL                                      0  $33     
        63        FETCH_DIM_R                                      $34     !4, 0
        64        CONCAT                                           ~35     $33, $34
        65        CONCAT                                           ~36     ~35, !2
        66        FETCH_DIM_R                                      $37     !4, 1
        67        CONCAT                                           ~38     ~36, $37
        68        CONCAT                                           ~39     ~38, !2
        69        FETCH_DIM_R                                      $40     !4, 2
        70        CONCAT                                           ~41     ~39, $40
        71        ECHO                                                     ~41
        72      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0