3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create a handler function function my_assert_handler($file, $line, $code) { echo "<hr>Assertion Failed: File '$file'<br /> Line '$line'<br /> Code '$code'<br /><hr />"; exit; } // Set up the callback assert_options(ASSERT_CALLBACK, 'my_assert_handler'); // Make an assertion that should fail assert('false');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o9fGv
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'assert_options'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 'my_assert_handler'
          3        DO_ICALL                                                 
   18     4        ASSERT_CHECK                                             
          5        INIT_FCALL                                               'assert'
          6        SEND_VAL                                                 'false'
          7        SEND_VAL                                                 'assert%28%27false%27%29'
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function my_assert_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/o9fGv
function name:  my_assert_handler
number of ops:  13
compiled vars:  !0 = $file, !1 = $line, !2 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    7     3        ROPE_INIT                                     7  ~4      '%3Chr%3EAssertion+Failed%3A%0A++++++++File+%27'
    8     4        ROPE_ADD                                      1  ~4      ~4, !0
          5        ROPE_ADD                                      2  ~4      ~4, '%27%3Cbr+%2F%3E%0A++++++++Line+%27'
    9     6        ROPE_ADD                                      3  ~4      ~4, !1
          7        ROPE_ADD                                      4  ~4      ~4, '%27%3Cbr+%2F%3E%0A++++++++Code+%27'
   10     8        ROPE_ADD                                      5  ~4      ~4, !2
          9        ROPE_END                                      6  ~3      ~4, '%27%3Cbr+%2F%3E%3Chr+%2F%3E'
         10        ECHO                                                     ~3
   11    11      > EXIT                                                     
   12    12*     > RETURN                                                   null

End of function my_assert_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1387 KiB | 17 Q