3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(-1); //全てのエラーを有効にする function my_error_handler($errno, $errstr, $errfile, $errline) { echo "ERROR [$errno] $errstr\n"; echo " Error on line $errline in file $errfile"; echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n"; echo "Aborting...\n"; /* Don't execute PHP internal error handler */ return true; } set_error_handler('my_error_handler'); function foo(int $v) { echo $v; } // 不正な数値を渡す foo('999999999999999');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aEpP8
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
   17     3        INIT_FCALL                                               'set_error_handler'
          4        SEND_VAL                                                 'my_error_handler'
          5        DO_ICALL                                                 
   24     6        INIT_FCALL                                               'foo'
          7        SEND_VAL                                                 '999999999999999'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function my_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aEpP8
function name:  my_error_handler
number of ops:  19
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    8     4        ROPE_INIT                                     5  ~5      'ERROR+%5B'
          5        ROPE_ADD                                      1  ~5      ~5, !0
          6        ROPE_ADD                                      2  ~5      ~5, '%5D+'
          7        ROPE_ADD                                      3  ~5      ~5, !1
          8        ROPE_END                                      4  ~4      ~5, '%0A'
          9        ECHO                                                     ~4
    9    10        ROPE_INIT                                     4  ~9      '++Error+on+line+'
         11        ROPE_ADD                                      1  ~9      ~9, !3
         12        ROPE_ADD                                      2  ~9      ~9, '+in+file+'
         13        ROPE_END                                      3  ~8      ~9, !2
         14        ECHO                                                     ~8
   10    15        ECHO                                                     '%2C+PHP+8.3.0+%28Linux%29%0A'
   11    16        ECHO                                                     'Aborting...%0A'
   14    17      > RETURN                                                   <true>
   15    18*     > RETURN                                                   null

End of function my_error_handler

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.84 ms | 1004 KiB | 16 Q