3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handle_assertion($file, $line, $code, $desc = null) { throw new Exception($desc ?: $code); } assert_options(ASSERT_CALLBACK, 'handle_assertion'); assert('true == false', 'My assertion failed! :-(');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Op52q
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'assert_options'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 'handle_assertion'
          3        DO_ICALL                                                 
    9     4        ASSERT_CHECK                                             
          5        INIT_FCALL                                               'assert'
          6        SEND_VAL                                                 'true+%3D%3D+false'
          7        SEND_VAL                                                 'My+assertion+failed%21+%3A-%28'
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function handle_assertion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/Op52q
function name:  handle_assertion
number of ops:  11
compiled vars:  !0 = $file, !1 = $line, !2 = $code, !3 = $desc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      null
    4     4        NEW                                              $4      'Exception'
          5        JMP_SET                                          ~5      !3, ->7
          6        QM_ASSIGN                                        ~5      !2
          7        SEND_VAL_EX                                              ~5
          8        DO_FCALL                                      0          
          9      > THROW                                         0          $4
    5    10*     > RETURN                                                   null

End of function handle_assertion

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.36 ms | 1395 KiB | 17 Q