3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($n) { $r = $n-$n; $b ($r>0?true:false); return $b; } $b = test($a); echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MaD30
function name:  (null)
number of ops:  6
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAR                                                 !1
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
   10     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MaD30
function name:  test
number of ops:  13
compiled vars:  !0 = $n, !1 = $r, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        SUB                                              ~3      !0, !0
          2        ASSIGN                                                   !1, ~3
    6     3        INIT_DYNAMIC_CALL                                        !2
          4        IS_SMALLER                                               0, !1
          5      > JMPZ                                                     ~5, ->8
          6    >   QM_ASSIGN                                        ~6      <true>
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~6      <false>
          9    >   SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0          
    7    11      > RETURN                                                   !2
    8    12*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.66 ms | 1398 KiB | 14 Q