3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = []; } $foo = new Foo; function set($param) { if ($param > 10) { return $param; } return false; } if (false !== $foo->bar[0] = param(11)) { echo 'YES!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/h61vQ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_FCALL_BY_NAME                                       'param'
          4        SEND_VAL_EX                                              11
          5        DO_FCALL                                      0  $6      
          6        FETCH_OBJ_W                                      $4      !0, 'bar'
          7        ASSIGN_DIM                                       ~5      $4, 0
          8        OP_DATA                                                  $6
          9        TYPE_CHECK                                  1018          ~5
         10      > JMPZ                                                     ~7, ->12
   20    11    >   ECHO                                                     'YES%21'
   21    12    > > RETURN                                                   1

Function set:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h61vQ
function name:  set
number of ops:  6
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        IS_SMALLER                                               10, !0
          2      > JMPZ                                                     ~1, ->4
   13     3    > > RETURN                                                   !0
   16     4    > > RETURN                                                   <false>
   17     5*     > RETURN                                                   null

End of function set

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.65 ms | 1394 KiB | 13 Q