3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errorLevel, $errorMessage) { echo 'in set_error_handler' . PHP_EOL; echo 'errorLevel is ' . ($errorLevel == E_RECOVERABLE_ERROR ? '': 'NOT') . 'E_RECOVERABLE_ERROR' . PHP_EOL; echo $errorMessage . PHP_EOL; }); set_exception_handler(function($exception) { echo 'in set_exception_handler' . PHP_EOL; echo 'Exception is ' . get_class($exception) . PHP_EOL; echo $exception->getMessage() . PHP_EOL; }); function a(array $a){} a(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m4f79
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fm4f79%3A2%240'
    6     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    8     4        INIT_FCALL                                               'set_exception_handler'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fm4f79%3A8%241'
   12     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   15     8        INIT_FCALL                                               'a'
          9        SEND_VAL                                                 null
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fm4f79%3A2%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m4f79
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $errorLevel, !1 = $errorMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ECHO                                                     'in+set_error_handler%0A'
    4     3        IS_EQUAL                                                 !0, 4096
          4      > JMPZ                                                     ~2, ->7
          5    >   QM_ASSIGN                                        ~3      ''
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~3      'NOT'
          8    >   CONCAT                                           ~4      'errorLevel+is+', ~3
          9        CONCAT                                           ~5      ~4, 'E_RECOVERABLE_ERROR'
         10        CONCAT                                           ~6      ~5, '%0A'
         11        ECHO                                                     ~6
    5    12        CONCAT                                           ~7      !1, '%0A'
         13        ECHO                                                     ~7
    6    14      > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2Fm4f79%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m4f79
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ECHO                                                     'in+set_exception_handler%0A'
   10     2        GET_CLASS                                        ~1      !0
          3        CONCAT                                           ~2      'Exception+is+', ~1
          4        CONCAT                                           ~3      ~2, '%0A'
          5        ECHO                                                     ~3
   11     6        INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      $4, '%0A'
          9        ECHO                                                     ~5
   12    10      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fm4f79%3A8%241

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m4f79
function name:  a
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.61 ms | 1403 KiB | 18 Q