3v4l.org

run code in 300+ 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:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'assert_options'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 'assert_handler'
          3        DO_ICALL                                                 
   10     4        ASSERT_CHECK                                             
          5        INIT_FCALL                                               'assert'
          6        SEND_VAL                                                 'false+%3D%3D+true'
          7        SEND_VAL                                                 'assert%28%27false+%3D%3D+true%27%29'
          8        DO_ICALL                                                 
   11     9        ASSERT_CHECK                                             
         10        INIT_FCALL                                               'assert'
         11        SEND_VAL                                                 <false>
         12        SEND_VAL                                                 'assert%28false+%3D%3D+true%29'
         13        DO_ICALL                                                 
   12    14        ASSERT_CHECK                                             
         15        INIT_FCALL                                               'assert'
         16        SEND_VAL                                                 <false>
         17        SEND_VAL                                                 'Expected+assert%28%29+to+fail+for+this+test+and+emit+the+actual+test+as+3rd+parameter+to+handler'
         18        DO_ICALL                                                 
         19      > 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.0.0


preferences:
170.1 ms | 1396 KiB | 17 Q