3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $params = array('extract-core' => 'no'); public function __invoke() { $this->_extractCore = !(strtolower($this->params['extract-core']) === 'no');var_dump(!(strtolower($this->params['extract-core']) === "no"));var_dump($this->params['extract-core']); } } $A = new A(); $A->__invoke();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pk3dp
function name:  (null)
number of ops:  6
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_METHOD_CALL                                         !0, '__invoke'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class A:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pk3dp
function name:  __invoke
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'strtolower'
          1        FETCH_OBJ_R                                      ~1      'params'
          2        FETCH_DIM_R                                      ~2      ~1, 'extract-core'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        IS_IDENTICAL                                     ~4      $3, 'no'
          6        BOOL_NOT                                         ~5      ~4
          7        ASSIGN_OBJ                                               '_extractCore'
          8        OP_DATA                                                  ~5
          9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'strtolower'
         11        FETCH_OBJ_R                                      ~6      'params'
         12        FETCH_DIM_R                                      ~7      ~6, 'extract-core'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                         $8      
         15        IS_IDENTICAL                                     ~9      $8, 'no'
         16        BOOL_NOT                                         ~10     ~9
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
         19        INIT_FCALL                                               'var_dump'
         20        FETCH_OBJ_R                                      ~12     'params'
         21        FETCH_DIM_R                                      ~13     ~12, 'extract-core'
         22        SEND_VAL                                                 ~13
         23        DO_ICALL                                                 
    6    24      > RETURN                                                   null

End of function __invoke

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.27 ms | 1396 KiB | 17 Q