3v4l.org

run code in 300+ PHP versions simultaneously
<?php $convert_error_to_exception = function ($level, $message, $file, $line, $context=null){ throw new ErrorException($message, 0, $level, $file, $line); }; set_error_handler($convert_error_to_exception); class boop { } $boop = new boop(); $boop->biip();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hdYdT
function name:  (null)
number of ops:  11
compiled vars:  !0 = $convert_error_to_exception, !1 = $boop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FhdYdT%3A2%240'
          1        ASSIGN                                                   !0, ~2
    6     2        INIT_FCALL                                               'set_error_handler'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   12     5        NEW                                              $5      'boop'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   13     8        INIT_METHOD_CALL                                         !1, 'biip'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FhdYdT%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/hdYdT
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $level, !1 = $message, !2 = $file, !3 = $line, !4 = $context
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_INIT                                        !4      null
    3     5        NEW                                              $5      'ErrorException'
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              0
          8        SEND_VAR_EX                                              !0
          9        SEND_VAR_EX                                              !2
         10        SEND_VAR_EX                                              !3
         11        DO_FCALL                                      0          
         12      > THROW                                         0          $5
    4    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FhdYdT%3A2%240

Class boop: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.73 ms | 1395 KiB | 15 Q