3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); // in PHP 4.x E_ALL ini_set('error_reporting', E_ALL); ini_set("display_errors", 1); ini_set("log_errors", 0); function add_points($player, $points) { $player->energy += $points; } function errorHandler($severity, $message, $filename, $line, $super_globals) { } set_error_handler('errorHandler'); add_points(NULL, 10); // Valgrind reports ?? echo 'ende'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Cm3O
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'ini_set'
          8        SEND_VAL                                                 'display_errors'
          9        SEND_VAL                                                 1
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'ini_set'
         12        SEND_VAL                                                 'log_errors'
         13        SEND_VAL                                                 0
         14        DO_ICALL                                                 
   14    15        INIT_FCALL                                               'set_error_handler'
         16        SEND_VAL                                                 'errorHandler'
         17        DO_ICALL                                                 
   15    18        INIT_FCALL                                               'add_points'
         19        SEND_VAL                                                 null
         20        SEND_VAL                                                 10
         21        DO_FCALL                                      0          
   20    22        ECHO                                                     'ende'
   21    23      > RETURN                                                   1

Function add_points:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Cm3O
function name:  add_points
number of ops:  5
compiled vars:  !0 = $player, !1 = $points
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        ASSIGN_OBJ_OP                                 1          !0, 'energy'
          3        OP_DATA                                                  !1
   10     4      > RETURN                                                   null

End of function add_points

Function errorhandler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Cm3O
function name:  errorHandler
number of ops:  6
compiled vars:  !0 = $severity, !1 = $message, !2 = $filename, !3 = $line, !4 = $super_globals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5      > RETURN                                                   null

End of function errorhandler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.65 ms | 1407 KiB | 20 Q