3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Initial settings:'.PHP_EOL; echo 'zend.assertions: '.ini_get('zend.assertions').PHP_EOL; echo 'assert.active: '.ini_get('assert.active').PHP_EOL; assert_options(ASSERT_ACTIVE, 0); echo 'After altering settings:'.PHP_EOL; echo 'zend.assertions: '.ini_get('zend.assertions').PHP_EOL; echo 'assert.active: '.ini_get('assert.active').PHP_EOL; $assert = false; assert($assert = true); if($assert) echo 'Code in assert() was evaluated'.PHP_EOL; else echo 'Code in assert() was NOT evaluated'.PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0VkPp
function name:  (null)
number of ops:  42
compiled vars:  !0 = $assert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Initial+settings%3A%0A'
    4     1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'zend.assertions'
          3        DO_ICALL                                         $1      
          4        CONCAT                                           ~2      'zend.assertions%3A+', $1
          5        CONCAT                                           ~3      ~2, '%0A'
          6        ECHO                                                     ~3
    5     7        INIT_FCALL                                               'ini_get'
          8        SEND_VAL                                                 'assert.active'
          9        DO_ICALL                                         $4      
         10        CONCAT                                           ~5      'assert.active%3A+', $4
         11        CONCAT                                           ~6      ~5, '%0A'
         12        ECHO                                                     ~6
    7    13        INIT_FCALL                                               'assert_options'
         14        SEND_VAL                                                 1
         15        SEND_VAL                                                 0
         16        DO_ICALL                                                 
    9    17        ECHO                                                     'After+altering+settings%3A%0A'
   10    18        INIT_FCALL                                               'ini_get'
         19        SEND_VAL                                                 'zend.assertions'
         20        DO_ICALL                                         $8      
         21        CONCAT                                           ~9      'zend.assertions%3A+', $8
         22        CONCAT                                           ~10     ~9, '%0A'
         23        ECHO                                                     ~10
   11    24        INIT_FCALL                                               'ini_get'
         25        SEND_VAL                                                 'assert.active'
         26        DO_ICALL                                         $11     
         27        CONCAT                                           ~12     'assert.active%3A+', $11
         28        CONCAT                                           ~13     ~12, '%0A'
         29        ECHO                                                     ~13
   13    30        ASSIGN                                                   !0, <false>
   14    31        ASSERT_CHECK                                             
         32        INIT_FCALL                                               'assert'
         33        ASSIGN                                           ~15     !0, <true>
         34        SEND_VAL                                                 ~15
         35        SEND_VAL                                                 'assert%28%24assert+%3D+true%29'
         36        DO_ICALL                                                 
   16    37      > JMPZ                                                     !0, ->40
   17    38    >   ECHO                                                     'Code+in+assert%28%29+was+evaluated%0A'
         39      > JMP                                                      ->41
   19    40    >   ECHO                                                     'Code+in+assert%28%29+was+NOT+evaluated%0A'
         41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.71 ms | 1405 KiB | 19 Q