3v4l.org

run code in 300+ PHP versions simultaneously
<?php function editEntry($entry) { echo $entry; } function deleteEntry($entry) { echo $entry; } /*Edit on $_POST*/ if(isset($_POST["edit"])) { $entry = $_POST["edit"]; editEntry($entry); } /*Delete on $_POST*/ else if(isset($_POST["delete"])) { $entry = $_POST["delete"]; deleteEntry($entry); } editEntry("3");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/9SNep
function name:  (null)
number of ops:  23
compiled vars:  !0 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_IS                                         ~1      '_POST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'edit'
          2      > JMPZ                                                     ~2, ->10
   15     3    >   FETCH_R                      global              ~3      '_POST'
          4        FETCH_DIM_R                                      ~4      ~3, 'edit'
          5        ASSIGN                                                   !0, ~4
   16     6        INIT_FCALL                                               'editentry'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0          
          9      > JMP                                                      ->19
   20    10    >   FETCH_IS                                         ~7      '_POST'
         11        ISSET_ISEMPTY_DIM_OBJ                         0          ~7, 'delete'
         12      > JMPZ                                                     ~8, ->19
   22    13    >   FETCH_R                      global              ~9      '_POST'
         14        FETCH_DIM_R                                      ~10     ~9, 'delete'
         15        ASSIGN                                                   !0, ~10
   23    16        INIT_FCALL                                               'deleteentry'
         17        SEND_VAR                                                 !0
         18        DO_FCALL                                      0          
   27    19    >   INIT_FCALL                                               'editentry'
         20        SEND_VAL                                                 '3'
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

Function editentry:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SNep
function name:  editEntry
number of ops:  3
compiled vars:  !0 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ECHO                                                     !0
    5     2      > RETURN                                                   null

End of function editentry

Function deleteentry:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SNep
function name:  deleteEntry
number of ops:  3
compiled vars:  !0 = $entry
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ECHO                                                     !0
   10     2      > RETURN                                                   null

End of function deleteentry

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.22 ms | 1390 KiB | 16 Q