3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * When there's no other way than dying, at least do it nicely. * @param string $message The message to show. * @param string|null $file File where problem occured (leave empty to autodetect). * @param integer $line Line of code causing the issue. */ function kbm_fatal($message, $file='', $line=0){ if(!$file){ $trace = debug_backtrace(); echo '<pre>';print_r($trace);die; } die("<div style='font: bold 12px Consolas; color: #A00; background: #FFF; padding: 3px; margin: 1px;'>FATAL: $message [$file:$line]</div>"); } function test(){ kbm_fatal('cheese'); } test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o2pvh
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'test'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function kbm_fatal:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/o2pvh
function name:  kbm_fatal
number of ops:  22
compiled vars:  !0 = $message, !1 = $file, !2 = $line, !3 = $trace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
          2        RECV_INIT                                        !2      0
   10     3        BOOL_NOT                                         ~4      !1
          4      > JMPZ                                                     ~4, ->13
   11     5    >   INIT_FCALL                                               'debug_backtrace'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !3, $5
   12     8        ECHO                                                     '%3Cpre%3E'
          9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > EXIT                                                     
   14    13    >   ROPE_INIT                                     7  ~9      '%3Cdiv+style%3D%27font%3A+bold+12px+Consolas%3B+color%3A+%23A00%3B+background%3A+%23FFF%3B+padding%3A+3px%3B+margin%3A+1px%3B%27%3EFATAL%3A+'
         14        ROPE_ADD                                      1  ~9      ~9, !0
         15        ROPE_ADD                                      2  ~9      ~9, '+%5B'
         16        ROPE_ADD                                      3  ~9      ~9, !1
         17        ROPE_ADD                                      4  ~9      ~9, '%3A'
         18        ROPE_ADD                                      5  ~9      ~9, !2
         19        ROPE_END                                      6  ~8      ~9, '%5D%3C%2Fdiv%3E'
         20      > EXIT                                                     ~8
   15    21*     > RETURN                                                   null

End of function kbm_fatal

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o2pvh
function name:  test
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'kbm_fatal'
          1        SEND_VAL                                                 'cheese'
          2        DO_FCALL                                      0          
   21     3      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.25 ms | 1399 KiB | 19 Q