3v4l.org

run code in 300+ PHP versions simultaneously
<?php //require_once("human.php"); //require("skills.php"); class You { public $role = "Developer"; public $skills = array("Web Development", "php", "MySQL", "HTML", "CSS"); public $person = array("Talent", "Humour", "Experience"); public function find() { $c = 0; if(in_array("Web Development", $this->skills)) { foreach ($this->skills as &$skill) { if (strpos($skill, "Web")) { $c .= +2; echo "gogo"; } else { $c++; echo $c; } } } return $c; } } $Developer = new You(); $requiredLevel = 6; if($Developer->find() >= $requiredLevel) echo "yep"; else echo $Developer->find(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vfS9U
function name:  (null)
number of ops:  14
compiled vars:  !0 = $Developer, !1 = $requiredLevel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   NEW                                              $2      'You'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   31     3        ASSIGN                                                   !1, 6
   32     4        INIT_METHOD_CALL                                         !0, 'find'
          5        DO_FCALL                                      0  $6      
          6        IS_SMALLER_OR_EQUAL                                      !1, $6
          7      > JMPZ                                                     ~7, ->10
   33     8    >   ECHO                                                     'yep'
          9      > JMP                                                      ->13
   35    10    >   INIT_METHOD_CALL                                         !0, 'find'
         11        DO_FCALL                                      0  $8      
         12        ECHO                                                     $8
   36    13    > > RETURN                                                   1

Class You:
Function find:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 125) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
2 jumps found. (Code = 126) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
filename:       /in/vfS9U
function name:  find
number of ops:  24
compiled vars:  !0 = $c, !1 = $skill
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, 0
   14     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 'Web+Development'
          3        FETCH_OBJ_R                                      ~3      'skills'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->22
   16     7    >   FETCH_OBJ_W                                      $5      'skills'
          8      > FE_RESET_RW                                      $6      $5, ->21
          9    > > FE_FETCH_RW                                              $6, !1, ->21
   17    10    >   INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 'Web'
         13        DO_ICALL                                         $7      
         14      > JMPZ                                                     $7, ->18
   18    15    >   ASSIGN_OP                                     8          !0, 2
   19    16        ECHO                                                     'gogo'
         17      > JMP                                                      ->20
   21    18    >   PRE_INC                                                  !0
   22    19        ECHO                                                     !0
   16    20    > > JMP                                                      ->9
         21    >   FE_FREE                                                  $6
   26    22    > > RETURN                                                   !0
   27    23*     > RETURN                                                   null

End of function find

End of class You.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.58 ms | 1392 KiB | 17 Q