3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = 'foo'; set_error_handler(function() { return false; }, 0); @$undefinedVariable; restore_error_handler(); $result = @eval($code); $error = error_get_last(); if ($result === false && $error['type'] === E_PARSE) { var_dump($error); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 24
filename:       /in/QKMsP
function name:  (null)
number of ops:  29
compiled vars:  !0 = $code, !1 = $result, !2 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    5     1        INIT_FCALL                                               'set_error_handler'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FQKMsP%3A5%240'
          3        SEND_VAL                                                 ~4
          4        SEND_VAL                                                 0
          5        DO_ICALL                                                 
    6     6        BEGIN_SILENCE                                    ~6      
          7        FETCH_R                      local               ~7      'undefinedVariable'
          8        END_SILENCE                                              ~6
          9        FREE                                                     ~7
    7    10        INIT_FCALL                                               'restore_error_handler'
         11        DO_ICALL                                                 
    9    12        BEGIN_SILENCE                                    ~9      
         13        INCLUDE_OR_EVAL                                  $10     !0, EVAL
         14        END_SILENCE                                              ~9
         15        ASSIGN                                                   !1, $10
   11    16        INIT_FCALL                                               'error_get_last'
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !2, $12
   12    19        TYPE_CHECK                                    4  ~14     !1
         20      > JMPZ_EX                                          ~14     ~14, ->24
         21    >   FETCH_DIM_R                                      ~15     !2, 'type'
         22        IS_IDENTICAL                                     ~16     ~15, 4
         23        BOOL                                             ~14     ~16
         24    > > JMPZ                                                     ~14, ->28
   13    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                                 
   14    28    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FQKMsP%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QKMsP
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   <false>
          1*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FQKMsP%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.44 ms | 1396 KiB | 21 Q