3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = false; try { $code = "1+1+++"; $res = eval("return ($code);"); } catch (ParseError $e) { //throw $e; } echo $res === false;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
filename:       /in/aSg5t
function name:  (null)
number of ops:  12
compiled vars:  !0 = $res, !1 = $code, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <false>
    4     1        ASSIGN                                                   !1, '1%2B1%2B%2B%2B'
    5     2        ROPE_INIT                                     3  ~6      'return+%28'
          3        ROPE_ADD                                      1  ~6      ~6, !1
          4        ROPE_END                                      2  ~5      ~6, '%29%3B'
          5        INCLUDE_OR_EVAL                                  $8      ~5, EVAL
          6        ASSIGN                                                   !0, $8
          7      > JMP                                                      ->9
    7     8  E > > CATCH                                       last         'ParseError'
   10     9    >   TYPE_CHECK                                    4  ~10     !0
         10        ECHO                                                     ~10
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.48 ms | 1393 KiB | 13 Q