3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isEqual($value, &$a = null, &$b = null) { $a = $value; $b = 2; return $a == $b; } $force = true; for($i=0; $i<3; $i++) { if ($isEqual($i, $a, $b) || $force) { echo $i . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 3
Branch analysis from position: 16
Branch analysis from position: 3
Branch analysis from position: 13
Branch analysis from position: 10
filename:       /in/8OiIu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $force, !1 = $i, !2 = $isEqual, !3 = $a, !4 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <true>
   11     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->14
   12     3    >   INIT_DYNAMIC_CALL                                        !2
          4        SEND_VAR_EX                                              !1
          5        SEND_VAR_EX                                              !3
          6        SEND_VAR_EX                                              !4
          7        DO_FCALL                                      0  $7      
          8      > JMPNZ_EX                                         ~8      $7, ->10
          9    >   BOOL                                             ~8      !0
         10    > > JMPZ                                                     ~8, ->13
   13    11    >   CONCAT                                           ~9      !1, '%0A'
         12        ECHO                                                     ~9
   11    13    >   PRE_INC                                                  !1
         14    >   IS_SMALLER                                               !1, 3
         15      > JMPNZ                                                    ~11, ->3
   15    16    > > RETURN                                                   1

Function isequal:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8OiIu
function name:  isEqual
number of ops:  8
compiled vars:  !0 = $value, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      null
    4     3        ASSIGN                                                   !1, !0
    5     4        ASSIGN                                                   !2, 2
    6     5        IS_EQUAL                                         ~5      !1, !2
          6      > RETURN                                                   ~5
    7     7*     > RETURN                                                   null

End of function isequal

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.59 ms | 1395 KiB | 13 Q