3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $serverity, string $message, string $filename, int $line) { if (error_reporting() === 0) { //C'รจ una @ } else { http_response_code(500); var_dump("throw"); throw new \ErrorException($message, 0, $serverity, $filename, $line); } }); $ciao = "ciao"; $ciao();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fFKZG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $ciao
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FfFKZG%3A3%240'
   11     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   13     4        ASSIGN                                                   !0, 'ciao'
   14     5        INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FfFKZG%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/fFKZG
function name:  {closure}
number of ops:  24
compiled vars:  !0 = $serverity, !1 = $message, !2 = $filename, !3 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    4     4        INIT_FCALL                                               'error_reporting'
          5        DO_ICALL                                         $4      
          6        IS_IDENTICAL                                             $4, 0
          7      > JMPZ                                                     ~5, ->9
          8    > > JMP                                                      ->23
    7     9    >   INIT_FCALL                                               'http_response_code'
         10        SEND_VAL                                                 500
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 'throw'
         14        DO_ICALL                                                 
    9    15        NEW                                              $8      'ErrorException'
         16        SEND_VAR_EX                                              !1
         17        SEND_VAL_EX                                              0
         18        SEND_VAR_EX                                              !0
         19        SEND_VAR_EX                                              !2
         20        SEND_VAR_EX                                              !3
         21        DO_FCALL                                      0          
         22      > THROW                                         0          $8
   11    23    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FfFKZG%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.87 ms | 1396 KiB | 21 Q