3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { echo "Error: $err_no - $err_msg, $filename($linenum)\n"; } set_error_handler('test_error_handler'); class A {} $a = new A; echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXfGS
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'test_error_handler'
          2        DO_ICALL                                                 
    9     3        NEW                                              $2      'A'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   10     6        ECHO                                                     !0
          7      > RETURN                                                   1

Function test_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXfGS
function name:  test_error_handler
number of ops:  16
compiled vars:  !0 = $err_no, !1 = $err_msg, !2 = $filename, !3 = $linenum, !4 = $vars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
    3     5        ROPE_INIT                                     9  ~6      'Error%3A+'
          6        ROPE_ADD                                      1  ~6      ~6, !0
          7        ROPE_ADD                                      2  ~6      ~6, '+-+'
          8        ROPE_ADD                                      3  ~6      ~6, !1
          9        ROPE_ADD                                      4  ~6      ~6, '%2C+'
         10        ROPE_ADD                                      5  ~6      ~6, !2
         11        ROPE_ADD                                      6  ~6      ~6, '%28'
         12        ROPE_ADD                                      7  ~6      ~6, !3
         13        ROPE_END                                      8  ~5      ~6, '%29%0A'
         14        ECHO                                                     ~5
    4    15      > RETURN                                                   null

End of function test_error_handler

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
208.9 ms | 1395 KiB | 15 Q