3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Active assert and make it quiet assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_WARNING, 0); assert_options(ASSERT_QUIET_EVAL, 1); // 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 />"; } // Set up the callback assert_options(ASSERT_CALLBACK, 'my_assert_handler'); // Make an assertion that should fail assert('mysql_query("")');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GJ8Hj
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'assert_options'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'assert_options'
          5        SEND_VAL                                                 4
          6        SEND_VAL                                                 0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'assert_options'
          9        FETCH_CONSTANT                                   ~2      'ASSERT_QUIET_EVAL'
         10        SEND_VAL                                                 ~2
         11        SEND_VAL                                                 1
         12        DO_ICALL                                                 
   18    13        INIT_FCALL                                               'assert_options'
         14        SEND_VAL                                                 2
         15        SEND_VAL                                                 'my_assert_handler'
         16        DO_ICALL                                                 
   21    17        ASSERT_CHECK                                             
         18        INIT_FCALL                                               'assert'
         19        SEND_VAL                                                 'mysql_query%28%22%22%29'
         20        SEND_VAL                                                 'assert%28%27mysql_query%28%22%22%29%27%29'
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

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

End of function my_assert_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1396 KiB | 17 Q