3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $params = array('extract-core' => 'no'); public function __invoke() { var_dump(!(strtolower($this->params['extract-core']) === "no"));var_dump($this->params['extract-core']); } } $A = new A(); $A();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uYBGH
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_DYNAMIC_CALL                                        !0
          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/uYBGH
function name:  __invoke
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'strtolower'
          2        FETCH_OBJ_R                                      ~0      'params'
          3        FETCH_DIM_R                                      ~1      ~0, 'extract-core'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                         $2      
          6        IS_IDENTICAL                                     ~3      $2, 'no'
          7        BOOL_NOT                                         ~4      ~3
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10        INIT_FCALL                                               'var_dump'
         11        FETCH_OBJ_R                                      ~6      'params'
         12        FETCH_DIM_R                                      ~7      ~6, 'extract-core'
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    6    15      > RETURN                                                   null

End of function __invoke

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.27 ms | 1395 KiB | 17 Q