3v4l.org

run code in 500+ PHP versions simultaneously
<?php $vars = array("\$arr['x'];5", "\$a;53", "\$b - \$a;27"); $arr['x'] = 5; $a = 54; $b = 81; foreach ($vars as $var) { list($x, $result) = explode(';', $var); if (eval("return $result == $x;")) { echo "$x = $result\n"; } else { echo "$x != $result\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 35
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 35
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/XMoCg
function name:  (null)
number of ops:  37
compiled vars:  !0 = $vars, !1 = $arr, !2 = $a, !3 = $b, !4 = $var, !5 = $x, !6 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN_DIM                                                   !1, 'x'
          2        OP_DATA                                                      5
    4     3        ASSIGN                                                       !2, 54
    5     4        ASSIGN                                                       !3, 81
    6     5      > FE_RESET_R                                           $11     !0, ->35
          6    > > FE_FETCH_R                                                   $11, !4, ->35
    7     7    >   INIT_FCALL                                                   'explode'
          8        SEND_VAL                                                     '%3B'
          9        SEND_VAR                                                     !4
         10        DO_ICALL                                             $12     
         11        FETCH_LIST_R                                         $13     $12, 0
         12        ASSIGN                                                       !5, $13
         13        FETCH_LIST_R                                         $15     $12, 1
         14        ASSIGN                                                       !6, $15
         15        FREE                                                         $12
    8    16        ROPE_INIT                                         5  ~18     'return+'
         17        ROPE_ADD                                          1  ~18     ~18, !6
         18        ROPE_ADD                                          2  ~18     ~18, '+%3D%3D+'
         19        ROPE_ADD                                          3  ~18     ~18, !5
         20        ROPE_END                                          4  ~17     ~18, '%3B'
         21        INCLUDE_OR_EVAL                                      $21     ~17, EVAL
         22      > JMPZ                                                         $21, ->29
    9    23    >   ROPE_INIT                                         4  ~23     !5
         24        ROPE_ADD                                          1  ~23     ~23, '+%3D+'
         25        ROPE_ADD                                          2  ~23     ~23, !6
         26        ROPE_END                                          3  ~22     ~23, '%0A'
         27        ECHO                                                         ~22
    8    28      > JMP                                                          ->34
   12    29    >   ROPE_INIT                                         4  ~26     !5
         30        ROPE_ADD                                          1  ~26     ~26, '+%21%3D+'
         31        ROPE_ADD                                          2  ~26     ~26, !6
         32        ROPE_END                                          3  ~25     ~26, '%0A'
         33        ECHO                                                         ~25
    6    34    > > JMP                                                          ->6
         35    >   FE_FREE                                                      $11
   14    36      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.19 ms | 2090 KiB | 14 Q