3v4l.org

run code in 500+ PHP versions simultaneously
<?php assert_options(ASSERT_CALLBACK, "assert_handler"); function assert_handler($file, $line, $assertion, $description="") { echo "* assert_handler('$file', '$line', '$assertion', '$description') called"; return true; } assert('false == true'); assert(false == true); assert(false == true, "Expected assert() to fail for this test and emit the actual test as 3rd parameter to handler");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1G2Zo
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'assert_options'
          1        FETCH_CONSTANT                                       ~0      'ASSERT_CALLBACK'
          2        SEND_VAL                                                     ~0
          3        SEND_VAL                                                     'assert_handler'
          4        DO_FCALL_BY_NAME                                             
   10     5        ASSERT_CHECK                                                 
          6        INIT_FCALL                                                   'assert'
          7        SEND_VAL                                                     'false+%3D%3D+true'
          8        SEND_VAL                                                     'assert%28%27false+%3D%3D+true%27%29'
          9        DO_ICALL                                                     
   11    10        ASSERT_CHECK                                                 
         11        INIT_FCALL                                                   'assert'
         12        SEND_VAL                                                     <false>
         13        SEND_VAL                                                     'assert%28false+%3D%3D+true%29'
         14        DO_ICALL                                                     
   12    15        ASSERT_CHECK                                                 
         16        INIT_FCALL                                                   'assert'
         17        SEND_VAL                                                     <false>
         18        SEND_VAL                                                     'Expected+assert%28%29+to+fail+for+this+test+and+emit+the+actual+test+as+3rd+parameter+to+handler'
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

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

End of function assert_handler

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
228.44 ms | 3527 KiB | 15 Q