3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.56 ms | 1394 KiB | 17 Q